in reply to trouble taking reference of function

TMTOWTDI . . .

use strict; use POSIX qw( sin ); my $s = \&sin; print $s->( 0.5 ), "\n";

(Not necessarily a good way, but . . . :)

The cake is a lie.
The cake is a lie.
The cake is a lie.