Syntactic Confectionery Delight | |
PerlMonks |
Re: Splitting a Stringby TheoPetersen (Priest) |
on May 18, 2001 at 05:03 UTC ( [id://81406]=note: print w/replies, xml ) | Need Help?? |
The answer appears so many times in your post that I wonder
if you are testing the community to see how nice we can be :) It's perlfunc:split of course. Pass it a regular expression and your string and you'll get the array of choice back. @ary = split(/|/, $string); Go read the documentation though, split does other nice tricks too.
In Section
Seekers of Perl Wisdom
|
|