|We don't bite newbies here... much|
perl threads and perl versionsby markseger (Beadle)
|on Feb 14, 2011 at 15:15 UTC||Need Help??|
markseger has asked for the
wisdom of the Perl Monks concerning the following question:
I have a script that uses threads and threads::shared. It works fine on fedora14 and some other distros, though I forget the different ones it worked correctly on.
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:
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.