sub call_service { croak "Couldn't find handler for $name" unless my $c = shift->can(shift); goto &$c; }
_________
broquaint
In reply to Re^2: Passing a data structure via a dynamically-built subroutine call
by broquaint
in thread Passing a data structure via a dynamically-built subroutine call
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |