develooper Front page | perl.perl5.porters | Postings from October 1999

Re: deprecating SIGDIE

Thread Previous | Thread Next
Gurusamy Sarathy
October 1, 1999 09:55
Re: deprecating SIGDIE
Message ID:
On Fri, 01 Oct 1999 11:44:56 BST, Nick Ing-Simmons wrote:
>Sigh. Does this mean I would then have to do : 
>eval { local $SIG{__EXCEPTION__}; # protect against 5.6 style
>       local $SIG{__DIE__};       # protect against 5.005 style
>       ...
>       die "__Tk_break__\n" if (some_condition)
>       ...
>     };
>if ($@ eq "__Tk_break__\n")
>If so, may I request a new "keyword" ("thow" would seem to suit)
>which does not have all these bells, whistles, and baroque twiddly
>bits? Can we then change "require" to use "thow" when it cannot load 
>something ? So that I can test for availability of things and act 

With the availability of coderefs in @INC, you should be able
to do this:

   push @INC, \&funky_tk_loader;


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About