in reply to Suppressing thread warnings
The warnings pragma has a threads category, so maybe...
Addendum: See also the "WARNINGS" section of the threads.pm documentation.
It's been a while since I tangled with threads, but the above quiets the warnings with 5.10 on Win32.use strict; use warnings; no warnings qw[threads]; use threads; my $thread1 = new threads(\&my_sub); my $thread2 = new threads(\&my_sub); sub my_sub {} exit; # needs explicit exit for reasons beyond me
Addendum: See also the "WARNINGS" section of the threads.pm documentation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Suppressing thread warnings
by AnomalousMonk (Archbishop) on Oct 10, 2008 at 17:40 UTC | |
Re^2: Suppressing thread warnings
by lennysan (Novice) on Oct 10, 2008 at 20:21 UTC |
In Section
Seekers of Perl Wisdom