in reply to Why is there only one column in the output file?
toolic is correct.
you probably want something like this
while(<IN>){ my $line = $_; unless ($line =~ /\S/) { print STDERR "Skipping line $. (blank)\n"; next; } my @fields = split /\t/,$line; unless (@fields >= 10) { print STDERR "Error: line $.: less than 10 fields: $_\n"; } . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is there only one column in the output file?
by jwkrahn (Abbot) on Apr 05, 2012 at 21:46 UTC | |
by ryber (Acolyte) on Apr 06, 2012 at 14:13 UTC |