in reply to execute a string as a function
my %dispatch = ( A => \&unpack_a, B => \&unpack_b, C => \&unpack_c, ); # ... $dispatch{$RECORD_SEQ_ID}->($lines[$_]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: execute a string as a function
by fionbarr (Friar) on Aug 06, 2013 at 15:35 UTC |