in reply to Re: Dreaded Symbolic References
in thread Dreaded Symbolic References
Beauty!
That is exactly the direction that I needed. My code is now like this:
my %Field; my @HeaderFields=qw(RequestYear RequestMonth RequestDay RequestSequenc +e RecordType RecordSequence Record); my %RecordMap =(Preface => A2A2A2A4A2A2A1486, 94 => A8A40); ... @Field{@HeaderFields}=unpack("$RecordMap{Preface}",$_); ...
Now just to change the rest of the mess into the nice clean hashes. (but first, lunch!)
Thanks LR (and all the other monks)
Skip
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Dreaded Symbolic References
by revdiablo (Prior) on Mar 08, 2004 at 19:38 UTC |