Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
gives me a Undefined subroutine &main::sin called at - line 2. What am I doing wrong?my $foo = \&sin; print $foo->(0.5), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trouble taking reference of function
by samtregar (Abbot) on Mar 03, 2009 at 21:22 UTC | |
by ikegami (Patriarch) on Mar 03, 2009 at 21:25 UTC | |
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 | |
| |
|
Re: trouble taking reference of function
by ikegami (Patriarch) on Mar 03, 2009 at 21:23 UTC | |
|
Re: trouble taking reference of function
by Fletch (Bishop) on Mar 03, 2009 at 22:05 UTC |