in reply to Dreaded Symbolic References

The way I would abstract variant record types is with a hash that you could reuse:
my %unpack = ( preface => "A2 A2 A2 A4 A2 A2 A1486", 94 => "A8 A40", ... ) @HeaderRecord = unpack $unpack{preface}, $FullRecord; @RecordNames[$RecordType] = unpack $unpack{$RecordType}, $Record;

-Mark

Replies are listed 'Best First'.
Re: Re: Dreaded Symbolic References
by SkipHuffman (Monk) on Mar 08, 2004 at 16:44 UTC

    Ah, but I really want the names. Keeping track of exactly what field 35 for record type 22 is what I want to avoid. I think tracking that I am working on a NameAddress record and reading HomeZipCode is going to be a bit easier to maintain.

    Thanks,

    Skip