What you're after is something like,
I don't see how you're getting that error in the third example unless $line is coming back as undef. -- Oh, perhaps the first character in $line is a tab!chomp(my $line = <IN>); my @row = split /\t/, $line; print $row[0];
After Compline,
Zaxo
In reply to Re: Chomp(<handle>)
by Zaxo
in thread Chomp(<handle>)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |