in reply to Getopt::Long subroutine usage

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.