randome has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I have a huge file with over 700,00 entries with 18 columns. One column is in the format
Now i have another list which corresponds to this code in a particular order--+-+ ---++ ????? -????
Now I need to match the expression above to the pattern, where +/- corresponds to A-E and ? corresponds to 0 and as an output I need to get a number. So the output should beA-1 B-7 C-11 D-3 E-100
This is just a sample, the numbers are much bigger and the pattern runs upto 24 times. Is there any way I can do it with perl scripting ? Thank you--+-+ = 122 (because 1+7+11+3+100) ---++= 122 ?????= 0 -???+= 101
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: decoding pattern expression
by kennethk (Abbot) on Aug 22, 2014 at 14:25 UTC | |
by AnomalousMonk (Archbishop) on Aug 22, 2014 at 15:19 UTC | |
Re: decoding pattern expression
by Anonymous Monk on Aug 22, 2014 at 21:53 UTC | |
Re: decoding pattern expression
by GotToBTru (Prior) on Aug 22, 2014 at 14:28 UTC | |
by randome (Initiate) on Aug 22, 2014 at 14:30 UTC | |
by GotToBTru (Prior) on Aug 22, 2014 at 14:47 UTC | |
by Anonymous Monk on Aug 22, 2014 at 14:37 UTC |
Back to
Seekers of Perl Wisdom