in reply to File parse
Yep, this won't work if the file format is defined to have whitespace-seperated columns.
However, if you change the definition, it woll work. For example you define the columns by starting-position and width.
my @columns = ( [ 0 , 9 ], # position,width [ 13, 14], # ... ); while( <$the_file> ){ chomp; my @data = (); for my $spec ( @columns ){ push @data , substr($_,@$spec) } print join('|',@data),"\n"; }
Programming is a question of definition
--
|
|---|