in reply to Re: global variable initialization inside try{}
in thread global variable initialization inside try{}
please explain me how it leaks memory when I call it every time.use Error qw( :try ); sub leaky_function { my $foo = 7; try { # do something here try { $foo++; } catch Error::Simple with { # whatever }; } catch Error::Simple with { # whatever }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: global variable initialization inside try{}
by perrin (Chancellor) on Apr 10, 2009 at 13:17 UTC |