kfarr2 has asked for the wisdom of the Perl Monks concerning the following question:
I’m trying to parse a text file to find the ending column number in $_ for each grouping containing a “-“. The contents of $_ can widely vary. Example#1:
should return column numbers 13, 40, 50, 56, 83, 90, 96, 109 and 122.---------- ------------------------- -------- ---- ------------ +------------- ----- ---- ----------- -----------
Example#2:
should return column numbers 14 and 22.----------- ------
I’ve been reading documentation for the last two hours, so I hope that qualifies as a fair, if not good, try before posting this simple question.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: text parsing question
by NetWallah (Canon) on Nov 07, 2004 at 14:26 UTC | |
|
Re: text parsing question
by Dietz (Curate) on Nov 07, 2004 at 14:52 UTC | |
|
Re: text parsing question
by davido (Cardinal) on Nov 07, 2004 at 17:01 UTC | |
|
Re: text parsing question
by tmoertel (Chaplain) on Nov 08, 2004 at 00:30 UTC | |
|
Re: text parsing question
by thetimeboy (Novice) on Nov 07, 2004 at 18:41 UTC | |
by tachyon (Chancellor) on Nov 07, 2004 at 23:04 UTC | |
|
Re: text parsing question
by TedPride (Priest) on Nov 08, 2004 at 04:54 UTC | |
|
Re: text parsing question
by kfarr2 (Novice) on Nov 07, 2004 at 21:02 UTC |