brtch has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I have some file with lines in this format:
xxx yy yy:yy:yy xxx/xxxxx xxx xxxx xxx xxx
where x is an alphabet, y is a number.
CATCH: The only thing that's standard across the file are the spaces and the / charecter. i.e, the first word can be of 3 or 4 or 5 charecters long.
Can you help me find a perl code that takes each of the strings and compares with strings (i have),i.e, say if the first string in the line == Feb.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Processing words in a file.
by kcott (Archbishop) on Feb 12, 2013 at 07:24 UTC | |
by brtch (Initiate) on Feb 12, 2013 at 09:44 UTC | |
Re: Processing words in a file.
by vinoth.ree (Monsignor) on Feb 12, 2013 at 05:39 UTC | |
Re: Processing words in a file.
by frozenwithjoy (Priest) on Feb 12, 2013 at 07:10 UTC | |
by brtch (Initiate) on Feb 12, 2013 at 07:16 UTC | |
by brtch (Initiate) on Feb 12, 2013 at 07:19 UTC |
Back to
Seekers of Perl Wisdom