# from Mahlon E. Smith
# on Monday 07 August 2006 10:35 am:
>The second was using $VERSION in the Inline call, instead of the
>hardcoded string. I guess Inline::MakeMaker doesn't parse that out,
>which makes sense in retrospect.
IIRC, you had the following:
$VERSION = '0.01';
...
use Inline C => 'DATA',
VERSION => $VERSION;
The 'use' statement happens before the '$VERSION=...' (not Inline::MM's
rules, but perl's.) You need to BEGIN {$VERSION='0.01';} if you want
it to be defined before the 'use' (see `perldoc -f use`.)
--Eric
--
Turns out the optimal technique is to put it in reverse and gun it.
--Steven Squyres (on challenges in interplanetary robot navigation)
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------