1Glib::Signal(3) User Contributed Perl Documentation Glib::Signal(3)
2
3
4
6 Glib::Signal - Object customization and general purpose notification
7
9 integer = Glib->install_exception_handler ($func, $data=undef)
10 · $func (subroutine)
11
12 · $data (scalar)
13
14 Install a subroutine to be executed when a signal emission traps an
15 exception (a croak or die). $func should return boolean (true if the
16 handler should remain installed) and expect to receive a single scalar.
17 This scalar will be a private copy of $@ which the handler can mangle
18 to its heart's content.
19
20 Returns an identifier that may be used with "remove_exception_handler".
21
22 See "gperl_install_exception_handler()" in Glib::xsapi.
23
24 Glib->remove_exception_handler ($tag)
25 · $tag (integer)
26
27 Remove the exception handler identified by $tag, as returned by
28 "install_exception_handler". If $tag cannot be found, this does
29 nothing.
30
31 WARNING: Do not call this function from within an exception handler.
32 If you want to remove your handler during its execution just have it
33 return false.
34
35 See "gperl_remove_exception_handler()" in Glib::xsapi.
36
38 Glib
39
41 Copyright (C) 2003-2009 by the gtk2-perl team.
42
43 This software is licensed under the LGPL. See Glib for a full notice.
44
45
46
47perl v5.12.1 2010-07-07 Glib::Signal(3)