Steve,
On Thu Mar 14 16:47:04 2013, steveocepek@gmail.com wrote:
Show quoted text> Indeed I agree there is something else at work here. I did the build
> as you
> recommended and I cannot reproduce the issue.
Thanks
Show quoted text> The eval statement still
> looks for Net::DNS::Resolver::linux as seen in the debugger:
The eval{ require something; } idiom is widely used to load code
which may or may not be installed.
The "linux" part comes from Perl's idea about the platform it is
running on. Linux is much like Unix, so nothing needs be done.
Show quoted text>
As the failure involves a 2 line code fragment, which one might
expect to be too small to have any interesting behaviour, the only
mechanism I can think of which might break it, is to speculate that
the $@ variable is getting destroyed by another thread in between
the inside of eval where it is set and the test for error.
I would have expected $@ to be local to each thread, otherwise the
construct is inherently unsafe.
As there are Perl revisions out there which exhibit this failing,
we will need to write it out of the code.
Dick