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
};
}
please explain me how it leaks memory when I call it every time.
Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
|