AP - Subroutine References
- like a function pointer, but much stronger
- allows for dispatch table
my %subs = ( foo => \&foo, bar => \&bar ); my $action = shift;
$subs{ $action }->() if exists $subs{ $action };
- also allows manipulating the symbol table directly...
Slide 39 of 47