sub brag { print "I am so great, I even have a name.\n"; } my $not_famous = sub { print "I'm behind the scenes and forgotten.\n"; }; my $famous = \&brag; # dereferencing with the & symbol &$not_famous; &$brag; # dereferencing with the arrow $not_famous->(); $brag->();