in reply to trouble taking reference of function

sin is actually an operator, not a function. You can wrap it in a sub.

my $foo = sub { sin($_[0]) };