We don't bite newbies here... much | |
PerlMonks |
Re: Forks.pm dilemmaby dragonchild (Archbishop) |
on Aug 07, 2003 at 16:01 UTC ( [id://281942]=note: print w/replies, xml ) | Need Help?? |
Option 4 - have share() be a Perl subroutine that determines if the version of Perl is 5.6 or 5.8. If it's 5.6, takes the reference. Then, passes whatever to the XS routine. When building the XS routine, determine the Perl version and build with or without the prototype.
In other words, make your stuff smart so the user can be dumb. :-) ------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Meditations
|
|