in reply to Chomp(<handle>)
chomp() returns the number of characters removed, not the chomped values. So even if you were to sidestep your immediate problem by doing
You still wouldn't get what you're expecting.my @row = split("\t", chomp(my $line = <IN>));
chomp() is a special beast. It modifies its arguments. You can't modify a file handle in the same way.
|
|---|