Conal has asked for the wisdom of the Perl Monks concerning the following question:
I am using another script to create a load of comma delimited files that contains a quote and a time ..they are created every half hour... an example of one file '11-03-08-2pm.txt'
what i want to do is grab the quote at 00 seconds or the one closest to but not after the half hour mark.. e.g 1:29:54 could be used if i have no quote for 1:30:00 , i wouldnt use 1:30:01 even tho its closer.1.53311 ,1:59:52 1.53311 ,1:59:5220 1.53311 ,1:59:52 1.53311 ,1:59:52hi 1.53311 ,2:00:00 1.53306 ,2:00:03 1.53307 ,2:00:06
there can be some vagaries in the readings file e.g 1:59:52hi , i can dismiss any data after the seconds reading.
i will then save only that selected quote back to its file.
does anyone care to nudge me in the right direction here pls? its been a while since i have had a need for any perl and my skills are little rusty to say the very least and i am drawing somewhat of a blank.
thanks kindly for any input ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading a delimited file and selecting values from it
by kyle (Abbot) on Mar 12, 2008 at 02:42 UTC | |
by Conal (Beadle) on Mar 12, 2008 at 02:55 UTC | |
by kyle (Abbot) on Mar 12, 2008 at 03:03 UTC | |
|
Re: reading a delimited file and selecting values from it
by nefigah (Monk) on Mar 12, 2008 at 02:28 UTC | |
|
Re: reading a delimited file and selecting values from it
by Conal (Beadle) on Mar 12, 2008 at 02:42 UTC | |
|
Re: reading a delimited file and selecting values from it
by Anonymous Monk on Mar 12, 2008 at 02:06 UTC |