http://qs321.pair.com?node_id=823027


in reply to How does this regex not match?

quotemeta the pattern variable and use it to match with the string
(will work for your case)

perl -ne "$var = quotemeta('my_stuff[1]=400'); print if /$var/ "


Vivek
-- 'I' am not the body, 'I' am the 'soul/consciousness', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.