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;
In reply to Re: split line from one point
by moritz
in thread split line from one point
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |