markseger has asked for the wisdom of the Perl Monks concerning the following question:
In any event, I'm now on a centos 5.3 box with perl V5.8.8 and when I execute the following to join the threads befor exiting:
I get an error:foreach my $thread (threads->list(threads::joinable)) { $thread->join(); }
Usage: threads::list(classname) at ./colmux.pl line 295.
I've observered a couple of things:
so my question is, is this a version thing? Should I just skip that loop if perl is less than a particular version number and if so what? or is there some simply test I can run to see if this is supported by my persion of perl, which might be the cleanest.
-mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl threads and perl versions
by BrowserUk (Patriarch) on Feb 14, 2011 at 15:23 UTC | |
by markseger (Beadle) on Feb 14, 2011 at 16:28 UTC | |
by BrowserUk (Patriarch) on Feb 14, 2011 at 17:31 UTC | |
by markseger (Beadle) on Feb 14, 2011 at 19:08 UTC | |
by BrowserUk (Patriarch) on Feb 14, 2011 at 19:22 UTC |