The sub {...} thing returns a reference to an anonymous subroutine. You can take a reference to any subroutine, though, using the backslash operator and the ampersand, like this:
my $sub_ref = \&subroutineName;
See perlreftut and perlref for more information.
In reply to Re: Getopt::Long subroutine usage
by William G. Davis
in thread Getopt::Long subroutine usage
by rockneybot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |