Think about Loose Coupling | |
PerlMonks |
substitution of a string with Square brackets.by neeha (Novice) |
on Mar 20, 2006 at 10:23 UTC ( [id://537905]=perlquestion: print w/replies, xml ) | Need Help?? |
neeha has asked for the wisdom of the Perl Monks concerning the following question:
Hi Experts, The below code does some substitution Here $2 is the values in the parameters. If the value of $2 is "String str". It works fine But if value of $2 is "String str[]". Unmatched [ in regex; exception occurs. THis happens only with Square brackets How can i do the substitution of a string with Square brackets. Waiting for ur replies. Thanks, Swarna.
Back to
Seekers of Perl Wisdom
|
|