Just another Perl shrine | |
PerlMonks |
Re: substitution of a string with Square brackets.by mickeyn (Priest) |
on Mar 20, 2006 at 10:38 UTC ( [id://537909]=note: print w/replies, xml ) | Need Help?? |
you should wrap $2 with quotes, i.e. \Q$2\E
Enjoy, Mickey
In Section
Seekers of Perl Wisdom
|
|