in reply to Re^2: Closures and undefined subs
in thread Closures and undefined subs
Neither local nor subs declared in lexicals help me out of my misery. The former is undefined the next is used as ""-ref. So There is a bug but what could it be that turns a sub into undefined?use Math::RungeKutta; sub outer { my $var = sub_from_other_package(); no warnings qw(closure); sub differ { my $y = shift; $var->[...]{...}{...}; etc. ... return $res; } sub dydt { my ($t,@y) = @_; return differ($y); }; ($t, @y) = rkXXX(\@y, \&dydt, $t, $dt); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Closures and undefined subs
by ikegami (Patriarch) on Sep 26, 2007 at 16:13 UTC | |
by Anonymous Monk on Sep 26, 2007 at 17:22 UTC | |
by ikegami (Patriarch) on Sep 26, 2007 at 17:30 UTC | |
by Anonymous Monk on Sep 26, 2007 at 17:54 UTC | |
by ikegami (Patriarch) on Sep 26, 2007 at 19:17 UTC | |
|