It still surprises me that Perl just keeps on making your job easier and easier the more you know about it.my %comms = ( 'one' => \&subone, 'two' => \&subtwo, ); my $subref = $comms{'one'}; &$subref('item');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: subroutine references
by merlyn (Sage) on Jul 14, 2000 at 18:37 UTC | |
by agoth (Chaplain) on Jul 14, 2000 at 18:53 UTC | |
by mdillon (Priest) on Jul 14, 2000 at 21:03 UTC |