|Perl Monk, Perl Meditation|
Forks.pm dilemmaby liz (Monsignor)
|on Aug 07, 2003 at 15:38 UTC||Need Help??|
I was checking forks.pm to make sure it will run under 5.8.1 (it will) and finally looked at the problem of running it under 5.6.x (it doesn't).
This is basically the problem:
The share subroutine is actually an XS routine that has this special prototype:
This prototype was introduced somewhere in the 5.7 track. So in 5.6.x I can't use that (I verified this on p5p). Simply removing the prototype and then having to specify a reference when calling share(), works:
Of course, it doesn't work in 5.8.x then, but I think that's fixable. But then the user's source code becomes incompatible with the real threads module.
So before I start doing that, I figure I put the dilemma to the Monks. I see the following options:
The URL http://www.liz.nl/CPAN/forks-0.04.tar.gz has entered CPAN as file: $CPAN/authors/id/E/EL/ELIZABETH/forks-0.04.tar.gz size: 27883 bytes md5: 5855b7f32f260d5ed04b3a34671f1866 No action is required on your part Request entered by: ELIZABETH (Elizabeth Mattijsen) Request entered on: Mon, 11 Aug 2003 00:37:06 GMT Request completed: Mon, 11 Aug 2003 00:45:48 GMT