Dpkg::Exit - program exit handlers
| Use Case | Command | Description |
|---|---|---|
| Register handler | push_exit_handler($func) | Add a code reference to the exit handler stack |
| Remove last handler | pop_exit_handler() | Pop the most recently registered exit handler |
| Execute handlers | run_exit_handlers() | Invoke all registered exit handlers |
The Dpkg::Exit module provides support functions to run handlers on exit.
push_exit_handler($func) — Register a code reference into the exit function handlers stack.pop_exit_handler() — Pop the last registered exit handler from the handlers stack.run_exit_handlers() — Run the registered exit handlers.Hide variable: @handlers.
New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers()
Deprecated variable: @handlers
Mark the module as public.
1.21.1 2025-09-09 Dpkg::Exit(3perl)
Generated by phpman v4.9.25-3-gdbaf087 Author: Che Dong Under GNU General Public License
2026-07-06 23:12 @216.73.217.93
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format