See. perlsub for more info.my $anonsub = sub { print "anonymous sub(@_)\n" }; $anonsub->("deref operator"); &$anonsub("sigil deref"); __output__ anonymous sub(deref operator) anonymous sub(sigil deref)
_________
broquaint
In reply to Re: Using references to subroutines
by broquaint
in thread Using references to subroutines
by firedoctor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |