in reply to split line from one point
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:
my ($a) = split /T/; print RE $a;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: split line from one point
by Anonymous Monk on Oct 19, 2011 at 12:29 UTC | |
by moritz (Cardinal) on Oct 19, 2011 at 12:36 UTC |
In Section
Seekers of Perl Wisdom