The result shows why it is good to know what /g does in scalar mode, and why pos() is a nice function to have.
This builds an array of the locations right after the space. This was perfect for me since I wanted to know where the next column would begin, but that is not always the ideal choice.
my @pos; while ($line =~ / /g) { push @pos, pos($line); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(meonkeys: can't get every column)
by meonkeys (Chaplain) on Aug 06, 2000 at 00:06 UTC | |
by tilly (Archbishop) on Aug 06, 2000 at 00:23 UTC | |
by meonkeys (Chaplain) on Aug 06, 2000 at 00:58 UTC |