WhiteBird has asked for the wisdom of the Perl Monks concerning the following question:
396.04,305.1,894.2,V321,908.3,,,,,
299.5,785,432.1,305.1,,,,,,
112.3,312,685,422.1,V566,433.2,987.5,,,, etc.
The person requesting this data suggested that I dump it into an excel spreadsheet, sort the data and manually remove the records that I don't need. That seems way too labor intensive to me, and I would think that Perl would have some quick and easy way to sort this out. I can't quite get my mind around the best way to do it, however.
I was thinking that I'd read each row and use a regular expression to find rows with 305.1 and then check for the existence of another qualifying number. Based on that I could then either delete the rows I don't need or save the ones I want to a new file. I'm a little rusty with Perl right now, and I don't even know how to start. I thought if I organized it into a node and tossed it out here that some discussion might help get me going. I'd appreciate any suggestions. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking Algorithm
by Zaxo (Archbishop) on May 28, 2004 at 03:27 UTC | |
by CountZero (Bishop) on May 28, 2004 at 10:18 UTC | |
|
Re: Seeking Algorithm (jump early)
by tye (Sage) on May 28, 2004 at 04:13 UTC | |
|
Re: Seeking Algorithm
by atcroft (Abbot) on May 28, 2004 at 03:35 UTC | |
|
Re: Seeking Algorithm
by dragonchild (Archbishop) on May 28, 2004 at 13:13 UTC | |
by WhiteBird (Hermit) on May 28, 2004 at 15:51 UTC | |
by Anonymous Monk on May 28, 2004 at 17:59 UTC | |
|
Re: Seeking Algorithm
by tkil (Monk) on May 28, 2004 at 07:18 UTC | |
by Abigail-II (Bishop) on May 28, 2004 at 07:39 UTC | |
by tkil (Monk) on May 28, 2004 at 15:55 UTC | |
by WhiteBird (Hermit) on May 28, 2004 at 17:30 UTC | |
|
Re: Seeking Algorithm
by WhiteBird (Hermit) on May 28, 2004 at 15:40 UTC | |
|
Re: Seeking Algorithm
by tkil (Monk) on May 28, 2004 at 16:19 UTC |