PERL_VER = `perl -e 'print $['`
in reply to Re: Forks.pm dilemma
in thread Forks.pm dilemma
I assume you mean:
as you cannot be sure the Makefile.PL is called by "perl". And note it should be $] rather than $[
PERL_VER = `$^X -e 'print $]'`
Actually, if I would have to resort to that, it would probably be easier to not define a macro for 5.6.x, and define a macro with the the PROTOTYPE: string for all other versions.
While investigating something about $[, I realized there was an error in this node. So I changed $[ to $] where appropriate and added a comment.