split \|, $line;
Huh? Try: split /\|/, $line;
You forgot your quote-like regexp characters.
Or to answer the OP's question:
my $delimiter = quotemeta( '|' ); my @array = split /$delimiter/, $line;
Dave
In reply to Re: Re: split question
by davido
in thread split question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |