makefile shows wrong perl version

K

Kari

Hello,

I am trying to link the DBI module to my perl install on HPUX. This
box has multiple versions of perl. I am trying to link to a version
that is not the default version. I set:
$PATH to new version plus /usr/bin
$PERL5LIB to new version
$PERLLIB to new version.

Inside my script I tried "use 5.8.8". (I have tried different forms
of use.)

No luck. When I run the Makefile.PL at the end I get a message that
says, "I see you're using perl 5.008008..."

I tried making HelloWorld.pl and having it print $] -- it says
5.008008, too.

What environment variable am I missing?

Thanks for your help,
Kari
 
P

Paul Lalli

Hello,

I am trying to link the DBI module to my perl install on HPUX. This
box has multiple versions of perl. I am trying to link to a version
that is not the default version. I set:
$PATH to new version plus /usr/bin
$PERL5LIB to new version
$PERLLIB to new version.

Inside my script I tried "use 5.8.8". (I have tried different forms
of use.)

No luck. When I run the Makefile.PL at the end I get a message that
says, "I see you're using perl 5.008008..."

I tried making HelloWorld.pl and having it print $] -- it says
5.008008, too.

What environment variable am I missing?

None. It's a concept you're missing. v5.8.8 *IS* 5.008008. Two
different expansions of the same value.

See also: perldoc perlvar (the $^V variable), and perldoc -f require

Paul Lalli
 
P

Paul Lalli

None. It's a concept you're missing. v5.8.8 *IS* 5.008008. Two
different expansions of the same value.

See also: perldoc perlvar (the $^V variable), and perldoc -f require

Perhaps this output will make that more explicit for you:
$ /usr/bin/perl -wle'print for sprintf("%vd", $^V), $]'
5.8.4
5.008004

$ /usr/local/bin/perl -wle'print for sprintf("%vd", $^V), $]'
5.8.5
5.008005

C:\>perl -wle"print for sprintf('%vd', $^V), $]"
5.8.8
5.008008

Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top