go ahead... be a heretic | |
PerlMonks |
Re: Surprised by splitby Anonymous Monk |
on Aug 11, 2005 at 14:05 UTC ( [id://482964]=note: print w/replies, xml ) | Need Help?? |
As explained by others, this is caused by repeated interpretation of the backslash. Or rather, lack of backslashes so it can be interpreted more than once. That's why I prefer to use [|] (and I think "Perl Best Practises" advices that too), then you can do both:
and without having to wonder how many backslashes you need. Anonymous Backslash Killer
In Section
Seekers of Perl Wisdom
|
|