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');
In reply to subroutine references by agoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |