|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: A problem with using the split commandby Paladin (Curate) |
| on Apr 30, 2004 at 20:10 UTC ( #349502=note: print w/ replies, xml ) | Need Help?? |
|
split actually takes a m// for it's first argument, not just a string. Try: The reason it was failing with \\ was that in a string, the '\\' turns into a literal \ after interpolation. That single \ is then passed to the regex engine as the RE, which is invalid as \ is special in a RE.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||