in reply to Re: trouble taking reference of function
in thread trouble taking reference of function
$ perl -wle'print sin(0.5) == sub { sin(@_) }->(0.5) ?1:0' 0 $ perl -wle'print sin(0.5) == sub { sin($_[0]) }->(0.5) ?1:0' 1
Update: Added code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: trouble taking reference of function
by Lawliet (Curate) on Mar 03, 2009 at 22:00 UTC | |
by kyle (Abbot) on Mar 03, 2009 at 22:17 UTC | |
by Lawliet (Curate) on Mar 03, 2009 at 22:36 UTC | |
by kyle (Abbot) on Mar 03, 2009 at 22:42 UTC |