in reply to Re^3: How to divide a line from a text file into 8 digit chunks
in thread How to divide a line from a text file into 8 digit chunks
Update: Did not notice balakrishnan's earlier and essentially identical reply before posting this.>perl -wMstrict -le "my $s = 'GRID 213736 15235.2 -2606.28596.178'; my @ra = $s =~ m{ .{1,8} }xmsg; print qq{:$_:} for @ra; " :GRID : : 213736 : : : :15235.2 : :-2606.28: :596.178:
|
|---|