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
In Section
Seekers of Perl Wisdom