meena has asked for the wisdom of the Perl Monks concerning the following question:
use threads; my $call = threads->create(\&methodinvoke); my @ReturnData = $call->join(); print('Thread returned ', join(', ', @ReturnData), "\n"); sub methodinvoke { use Alarm::Queued qw( :OVERLOAD :ALL ); setalarm(2, sub { print "bing" }); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Alarm In Perl
by hippo (Archbishop) on Jul 25, 2013 at 11:28 UTC | |
Re: Alarm In Perl
by meena (Novice) on Jul 25, 2013 at 11:44 UTC | |
by ww (Archbishop) on Jul 25, 2013 at 11:58 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2013 at 12:07 UTC | |
by meena (Novice) on Jul 25, 2013 at 12:16 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2013 at 12:21 UTC | |
by hippo (Archbishop) on Jul 25, 2013 at 17:20 UTC |