Don't ask to ask, just ask | |
PerlMonks |
Re: Problem de-referencing a variableby Not_a_Number (Prior) |
on Feb 09, 2009 at 21:49 UTC ( [id://742596]=note: print w/replies, xml ) | Need Help?? |
I think you might have an XY Problem here. Correct me if I'm wrong, but I think that what you really want to do is to munge this input:
using your %translation hash, to produce this output:
This implies that each 20-character-long line in your input file may be divided into four segments, of respectively 6 + 6 + 6 + 2 bytes (counting from left to right). In which case, why not simplify matter by stringifying the 'segments' in question? Your %reverse_translation could then look like this:
Here's a possible implementation, which works at least with the (rather sparse) data you provide:
In Section
Seekers of Perl Wisdom
|
|