in reply to Dreaded Symbolic References
While I assume (I didn't benchmark) that symbolic references would be somewhat quicker, I think this code is clearer and much easier to debug.my $assign; $assign="(".join(",",@HeaderRecordNames).")="; $assign.="unpack(\".join("",@RecordLengths[$RecordType])."\");"; print "Evaluating $assign\n"; # this is for debugging eval $assign;
|
|---|