my $subref = \&foo; my @args = ( 4, 2 ); $subref->( @args ); sub foo { die "@_" } __END__ 4 2 at - line 4.
perlref, perlreftut#Making References , references quick reference
In reply to Re: Call subroutine by reference ?
by Anonymous Monk
in thread Call subroutine by reference ?
by JockoHelios
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |