"be consistent" | |
PerlMonks |
reading a delimited file and selecting values from itby Conal (Beadle) |
on Mar 12, 2008 at 01:39 UTC ( [id://673653]=perlquestion: print w/replies, xml ) | Need Help?? |
Conal has asked for the wisdom of the Perl Monks concerning the following question:
hi..
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. 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 ..
conal.
Back to
Seekers of Perl Wisdom
|
|