I am running perl version 5.12.4 and for some reason, Guard and friends aren't working?
If I try this:
perl -MGuard -e '{scope_guard { warn }; sleep 3 }'...and wait for 3 seconds, then I get a warning. But if I break the program (ctrl-C) - SIGINT, nothing happens. The guard is never run.
This behaviour is the same with Scope::Guard and End. Maybe something with a change of the behaviour of global destruction when perl exits? Any suggestions?
In reply to Guard, Scope::Guard and End defunct in perl 5.12? by mzedeler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |