http://qs321.pair.com?node_id=757844


in reply to Taking reference to function

Other than the huge difference of strict complaining, the differences are almost non-existent. But not totally so, as the following code sample shows:
sub foo {print "world,\n"} my $func_name = "foo"; my $func_ref = \&foo; # Replace foo *foo = sub {print "Hello "}; &$func_name(); $func_ref->();