There's more than one way to do things | |
PerlMonks |
Re: Surprised by splitby dave_the_m (Monsignor) |
on Aug 11, 2005 at 10:01 UTC ( [id://482885]=note: print w/replies, xml ) | Need Help?? |
You are using a string literal rather than a regular expression literal, so the \ gets removed by the double-quoted string handling code before it gets passed to the regex compiler. Use a regex literal instead:
Dave.
In Section
Seekers of Perl Wisdom
|
|