my $foo = \&sin; print $foo->(0.5), "\n"; [download]
In reply to trouble taking reference of function by Anonymous Monk