Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I'd recommend to treat %SIG as magic and not to expect local %SIG to have useful effects

perlvar says

> Due to an implementation glitch, the $SIG{__DIE__} hook is called even inside an "eval()".

this is a strong hint that the implementation doesn't always resolve %SIG like with normal variables ( well, that's why it's called a "special variable" anyway)

local %SIG looks wrong anyway since you are disabling all default settings of a running system

DB<100> \%SIG => do { my $a = { __DIE__ => sub { ... }, __WARN__ => sub { ... }, ABRT => undef, ALRM => undef, BUS => sub { ... }, CHLD => undef, CLD => undef, CONT => undef, FPE => "IGNORE", HUP => undef, ILL => undef, INT => sub { ... }, IO => undef, IOT => undef, KILL => undef, NUM32 => undef, NUM33 => undef, NUM35 => undef, NUM36 => undef, NUM37 => undef, NUM38 => undef, NUM39 => undef, NUM40 => undef, NUM41 => undef, NUM42 => undef, NUM43 => undef, NUM44 => undef, NUM45 => undef, NUM46 => undef, NUM47 => undef, NUM48 => undef, NUM49 => undef, NUM50 => undef, NUM51 => undef, NUM52 => undef, NUM53 => undef, NUM54 => undef, NUM55 => undef, NUM56 => undef, NUM57 => undef, NUM58 => undef, NUM59 => undef, NUM60 => undef, NUM61 => undef, NUM62 => undef, NUM63 => undef, PIPE => undef, POLL => undef, PROF => undef, PWR => undef, QUIT => undef, RTMAX => undef, RTMIN => undef, SEGV => 'fix', STKFLT => undef, STOP => undef, SYS => undef, TERM => undef, TRAP => undef, TSTP => undef, TTIN => undef, TTOU => undef, UNUSED => undef, URG => undef, USR1 => undef, USR2 => undef, VTALRM => undef, WINCH => undef, XCPU => undef, XFSZ => undef, }; $a->{SEGV} = $a->{BUS}; $a; }

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!


In reply to Re: Localizing %SIG by LanX
in thread Localizing %SIG by Darkwing

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found