in reply to Using references to subroutines

Actually that code doesn't compile, but if you want to know about subroutine references and the use thereof see Re (tilly) 1: References quick reference. Here's some example code for anonymous sub usage e.g
my $anonsub = sub { print "anonymous sub(@_)\n" }; $anonsub->("deref operator"); &$anonsub("sigil deref"); __output__ anonymous sub(deref operator) anonymous sub(sigil deref)
See. perlsub for more info.
HTH

_________
broquaint