in reply to small change to Text::ParseWords - evil consequences?
output:use Text::ParseWords; $str = "a b c"; @f = split /\t/, $str; print scalar @f, "\n"; @f = parse_line('\t', 0, $str); print scalar @f, "\n";
Both parse_line and split handle the null field.[root@localhost root]# perl temp.pl 4 4
|
|---|