http://www.perlmonks.org?node_id=281982


in reply to Re: Forks.pm dilemma
in thread Forks.pm dilemma

PERL_VER = `perl -e 'print $['`

I assume you mean:

PERL_VER = `$^X -e 'print $]'`
as you cannot be sure the Makefile.PL is called by "perl". And note it should be $] rather than $[

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.

Liz

Update:
While investigating something about $[, I realized there was an error in this node. So I changed $[ to $] where appropriate and added a comment.