On Tue, Aug 08, 2006, Eric Wilhelm wrote: > # 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`.)
Oh, of course. Thanks for the clarification/reminder. -mahlon -- Mahlon E. Smith [EMAIL PROTECTED] | http://www.martini.nu/
pgpSec6tDJdB2.pgp
Description: PGP signature