in reply to can't use unpack or split??
Of course, depending on all the factors of your situation, there is likely a better solution - perhaps involving pre-processing. In any account - enjoy. Update: Though it was perfectly fine, I changed .* to .{1,5} after reading about the constraint elswhere in the threadwhile ( <DATA> ) { my @col = /^(\w{3}) (.{1,5})\s+(\w+)\s+([01?]) ([01?]) ([01?]) ([0 +1?]) ([01?])$/; print join "\t" , @col; print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can't use unpack or split??
by seaver (Pilgrim) on Jun 07, 2004 at 20:22 UTC | |
by Limbic~Region (Chancellor) on Jun 07, 2004 at 20:26 UTC |