use strict; use warnings; my $meth_name = 'foo'; __PACKAGE__->$meth_name('camel'); exit( 0 ); sub foo { my ($self, $arg) = @_; print "$arg (on behalf of $self)\n"; }
which prints
camel (on behalf of main)
In reply to Re: subroutine refs
by fenLisesi
in thread subroutine refs
by CColin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |