No such thing as a small change | |
PerlMonks |
Re^2: brutally stop a perl program if it runs too longby Errto (Vicar) |
on Sep 13, 2005 at 03:18 UTC ( [id://491447]=note: print w/replies, xml ) | Need Help?? |
Cool idea, but I don't think it works as is (at least not for me) because the import routine is called after the module is required, so the forking block would never see the correct value of $N. The solution is simply to make it all part of the import subroutine, and use return instead of last.
In Section
Seekers of Perl Wisdom
|
|