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


in reply to trouble taking reference of function

Perl's builtins aren't generally made available as subs you can take a reference to. This works though:

my $foo = sub { sin(@_) }; print $foo->(0.5), "\n";

-sam