SysTutorials

Linux Manual Pages › Section 3

dpkgexit(3)

Dpkg::Exit - program exit handlers

Description

The Dpkg::Exit module provides support functions to run handlers on exit.

Functions

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.

Changes

Version 1.01

New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers()

Deprecated variable: @handlers

Version 1.00

Mark the module as public.