There's more than one way to do things | |
PerlMonks |
Re: split line from one pointby moritz (Cardinal) |
on Oct 19, 2011 at 12:17 UTC ( [id://932377]=note: print w/replies, xml ) | Need Help?? |
Please be more specific than "doesn't work". What happens? Do blue flames come out of your computer? Anyway, the problem is likely that you call split in scalar context. Depending on your Perl version, that either puts the number of chunks into $a (newer perls), or does something very weird (in older perl, it writes the chunks to @_). The solution is to call split in list context:
In Section
Seekers of Perl Wisdom
|
|