Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: One line assigment statement with regex matchby mugwumpjism (Hermit) |
on Jul 06, 2005 at 22:07 UTC ( [id://472950]=note: print w/replies, xml ) | Need Help?? |
Terribly sorry, I didn't test it. Yes, the double use of "/" to delimit regular expressions is tripping up the parser. Much better to use braces;
The above will print "(?-xism:(?:(?-xism:foo)|(?-xism:bar)|(?-xism:b\.\*az)))"
In Section
Seekers of Perl Wisdom
|
|