good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: File Search And Compareby PyroX (Pilgrim) |
on Feb 18, 2002 at 22:18 UTC ( [id://146269]=note: print w/replies, xml ) | Need Help?? |
OK! But now I have a new problem, I think that may work, but there is a timestamp in each line, so I need so split before you process the line in the file. The split needs to be a regular expression split, of ':01-60 ' so that is will be split with ':' and any number 01 - 60 followed by a space, together: ':34 ' or ':21 ' or ':57 ' would all work, this is the seconds in the timestamp of course. that should leave us with an array with [0] (the trash) and 1 (the goodies) I tried inserting somehting like:
But that didn't work, and I am unsure of both the regex, and ties with your code. Any more help would be much appriciated.
In Section
Seekers of Perl Wisdom
|
|