in reply to repeat data at one line and grep as pre-set format
I'm not entirely sure what you're asking for, but it looks like you're just needing to reformat the data to a two-column output. If that's the case, this ought to do the trick:
while( my $line = <DATA> ) { while( $line =~ m/(\d{8})\s+(\d{5})/g ) { print "$1 $2\n"; } }
If I've missed the point to the question, you might help out by providing further explanation on what you are trying to do.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: repeat data at one line and grep as pre-set format
by demerphq (Chancellor) on Jan 24, 2006 at 09:13 UTC | |
by davido (Cardinal) on Jan 24, 2006 at 10:13 UTC | |
by BrowserUk (Patriarch) on Jan 24, 2006 at 10:59 UTC |