Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Splitting a Stringby damian1301 (Curate) |
on May 18, 2001 at 05:00 UTC ( [id://81404]=note: print w/replies, xml ) | Need Help?? |
@array=split/\|/,$str; You have to backslash it because it is used in regular expressions as a logical or. NOTE:This could have been found out by using the tutorials, super search or just looking through the archives... Tiptoeing up to a Perl hacker. Dave AKA damian
In Section
Seekers of Perl Wisdom
|
|