in reply to Re: Closures and undefined subs
in thread Closures and undefined subs

Thank you for your replay but as I use the strict pragma and I wont disable it your solution will not work.
But nevertheless I guess you are right. Rungekutta uses the sub several times and local is not the right thing to use in this case.
What else could you suggest in order to make the inner subs using the vars from the outer one.

Replies are listed 'Best First'.
Re^3: Closures and undefined subs
by ikegami (Patriarch) on Sep 26, 2007 at 14:36 UTC
    You've done something wrong if you need to turn off strict. Fletch's code works fine with strict. And the inner subs have no problems using the variables in the outer one. Could you show us your code?