Subject: | Net::Daemon emitting warnings in perl 5.16 (no threads) |
This will emit copious re-define warnings in perl 5.15+. It didn't in 5.14 as best I can tell
perl -cw -MNet::Daemon -e1
The reason as best I can tell is because threads and threads::shared are pulled in even if perl
was not compiled with threads.
I suggest renaming the variable $this_is_510 to $this_is_510_threads
The change this:
my $this_is_510 = $^V ge v5.10.0;
To This:
$this_is_510_threads = $^V ge v5.10.0 && $Config{'usethreads'};