The pattern is a regular expression pattern. ;)
split /\|/, $line;have a look at perldoc -f split (split) and perlre.
--
Allolex
Update Sat Jan 31 05:05:13 2004: Added slashes. I saw that particular syntax on comp.lang.perl.misc, and just assumed that it would work (mea maxima culpa).
In reply to Re: split question
by allolex
in thread split question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |