There's more than one way to do things | |
PerlMonks |
Re: Splitting multiple patternsby exilepanda (Friar) |
on Apr 09, 2012 at 08:03 UTC ( [id://964097]=note: print w/replies, xml ) | Need Help?? |
if you sure your pattern is correct and like this all the time, you can use this : my ( $name, $age, $sex, $ad ) = split /[\s\,]+/, $_;
In Section
Seekers of Perl Wisdom
|
|