Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Matching brackets in Regular Expressionby jweed (Chaplain) |
on Nov 21, 2003 at 18:28 UTC ( [id://308996]=note: print w/replies, xml ) | Need Help?? |
The problem is that this scalar $stub is volatile and it also contains a little bracket... I believe that though he listed that bob(scalar), it should be bob[scalar] as the description lists. In this case it would be interpreted as a character class instead of a string. \Q and \E would backslash these brackets. In it's current form, there's really no conflict unless the string is something like bob(??{print $hi}). Who is Kayser Söze? All code is untested unless I say so.
In Section
Seekers of Perl Wisdom
|
|