missingthepoint has asked for the wisdom of the Perl Monks concerning the following question:
Howdy all,
While messing about with signals recently I noticed this:
C:\Src>perl -MDDS -e "Dump \%SIG" $HASH1 = { __DIE__ => undef, __WARN__ => undef, ABRT => undef, ALRM => undef, BREAK => undef, CHLD => undef, CLD => undef, CONT => undef, FPE => undef, HUP => undef, ILL => undef, INT => undef, KILL => undef, NUM05 => undef, NUM06 => undef, NUM07 => undef, NUM10 => undef, NUM12 => undef, NUM16 => undef, NUM17 => undef, NUM18 => undef, NUM19 => undef, NUM24 => undef, PIPE => undef, QUIT => undef, SEGV => undef, STOP => undef, TERM => undef }; C:\Src>perl -MData::Dumper -e "print Dumper \%SIG" $VAR1 = { 'ABRT' => undef, 'BREAK' => undef, 'HUP' => undef, 'NUM19' => undef, 'FPE' => undef, 'CLD' => undef, 'NUM12' => undef, 'NUM16' => undef, 'NUM18' => undef, 'NUM17' => undef, 'STOP' => undef, 'NUM24' => undef, 'NUM10' => undef, 'INT' => undef, 'SEGV' => undef, 'QUIT' => undef, 'KILL' => undef, 'PIPE' => undef, 'NUM05' => undef, 'CONT' => undef, '__WARN__' => undef, 'NUM06' => undef, 'NUM07' => undef, 'ILL' => undef, 'TERM' => undef, 'ALRM' => undef, 'CHLD' => undef }; C:\Src>
In the Data::Dumper output, the entry in the %SIG hash for __DIE__ is missing, but when using Data::Dump::Streamer it appears. I suspect DDS is correct.
1. Is DDS indeed correct? 2. If so, why is __DIE__ missing in the latter? This is mainly curiosity on my part.
For info, This is perl, v5.10.0 built for MSWin32-x86-multi-thread Binary build 1004 (287188) provided by ActiveState
Update: and Data::Dump::Streamer $VERSION='2.09' $XS_VERSION='2.07', Data::Dumper $VERSION=2.121_14
Thanks for any insight! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where did __DIE__ go? (Data::Dumper bug?)
by BrowserUk (Patriarch) on Jun 27, 2009 at 08:48 UTC | |
by missingthepoint (Friar) on Jun 29, 2009 at 07:21 UTC | |
|
Re: Where did __DIE__ go? (Data::Dumper bug?)
by FunkyMonk (Bishop) on Jun 27, 2009 at 08:50 UTC | |
|
Re: Where did __DIE__ go? (Data::Dumper bug?)
by Anonymous Monk on Jun 27, 2009 at 08:45 UTC |