in reply to Re^2: Hunting for a memory leak
in thread Hunting for a memory leak

That's a nice use of state to avoid the global variable. :-)
# Make sure $img doesn't get released. # Only define new object the first time around. state $img; if (! defined $img) { $img = $MW->Photo(); }

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh