![]() |
|
P is for Practical | |
PerlMonks |
Re: parse problemby DrManhattan (Chaplain) |
on Apr 20, 2003 at 02:05 UTC ( #251761=note: print w/replies, xml ) | Need Help?? |
The first argument to split() needs to be a regular expression matching the string that delimits the fields in your data. In your case, the fields in your line are separated by a '|', so the code could look like this:
Or more concisely:
-Matt
In Section
Seekers of Perl Wisdom
|
|