technoman007
IS-IT--Management
hi
i have a file which has data like this
month car dealer year
jan lexus xyz 2012
mar merc ber 2011
april toyota wer 2010
with perl i want to replace month with a corresponding number like
jan -1
feb -2
mar -3
..
..
dec -12
the number of lines in the file is not fixed so it has to go thru all the lines that exist in the file.
Looking for some advice as to how i can do this in perl .
i have a file which has data like this
month car dealer year
jan lexus xyz 2012
mar merc ber 2011
april toyota wer 2010
with perl i want to replace month with a corresponding number like
jan -1
feb -2
mar -3
..
..
dec -12
the number of lines in the file is not fixed so it has to go thru all the lines that exist in the file.
Looking for some advice as to how i can do this in perl .