A little bit more code than needed, and some information missing.

What OS do you use? Which version? Module versions could also be interesting. I suggest to run the following script (use the download link) with both Perl versions and to post its output, wrapped in <code> tags:

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; $Data::Dumper::Sortkeys=1; sub info { my $where=shift; print $where,": ",Dumper($SIG{'CHLD'}),"\n"; } info('start'); $SIG{'CHLD'}=sub { 'oh well, just a dummy' }; info('after set handler'); require Net::DNS; info('after require'); Net::DNS->import(); info('after import'); print "\n"; print "OS: $^O\n"; print "Versions:\n"; print "Perl $^V\n"; for my $fn (sort keys %INC) { my $mod=$fn; $mod=~s|/|::|g; $mod=~s|\.pm$|| or next; my $ver=do { no strict 'refs'; defined ${"$mod\::VERSION"} ? ${"$mod\::VERSION"} : 'n +one' }; print "$mod $ver\n"; }

The first lines up to print "\n" are the real test code, everything following that collects information (OS, Perl version, Module versions).

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re: SIG{CHLD} altered by require statement on Perl 5.12.1 by afoken
in thread SIG{CHLD} altered by require statement on Perl 5.12.1 by sdingare

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.