in reply to
using split
The pipe character is special in a regexp, so you need to escape it:
@cols = split(/\|/, $line);
[download]
Comment on
Re: using split
Download
Code
Replies are listed 'Best First'.
Re^2: using split
by
maurkb
(Novice)
on Jun 04, 2007 at 16:29 UTC
Ah, I should have realized that. Thanks for the help!
[reply]
In Section
Seekers of Perl Wisdom