my $foo = sub { sin(@_) }; print $foo->(0.5), "\n"; [download]
-sam
In reply to Re: trouble taking reference of function by samtregar in thread trouble taking reference of function by Anonymous Monk