in reply to Vertical split (ala cut -d:) of a file
You may also dynamically manage the number of columns by putting all of the arrays in a hash.my (@col1, @col2, @col3); my $i=0; while (<FOO>) { ($col1[$i],$col2[$i],$col3[$i])=unpack("A1 A4 A8",$_); $i++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Vertical split (ala cut -d:) of a file
by Aristotle (Chancellor) on Jan 30, 2005 at 22:23 UTC |