in reply to Memory issues with AUTOLOAD
I put your snippet in a class and called a non-existant method in that class. No problem. The only thing that happened was that when the script exited (in your AUTOLOAD subroutine), it tried to call the special DESTROY subroutine which triggered AUTOLOAD again. This happened only twice. Maybe you have a different perl version where AUTOLOAD gets triggered endlessly, but then you would have seen endless rows of "Attempt to call ...::DESTROY failed." on your screen. Nevertheless try adding
sub DESTROY {}
If that isn't the reason, you should have posted the part of your script with the bug in it ;-)
By the way, if you try to create a minimal script that exhibits your bug you automatically isolate the bug so that you might even find it yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory issues with AUTOLOAD
by Anonymous Monk on Feb 18, 2011 at 11:46 UTC |