Perl split will suppress trailing empties unless you give it the third argument. Does this do what you want?
$_ = "val\t\t\t"; my @a = split /\t/, $_, 4; print scalar( @a), $/;
After Compline,
Zaxo
In reply to Re: Working of split
by Zaxo
in thread Working of split
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |