Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > makefile shows wrong perl version

Reply
Thread Tools

makefile shows wrong perl version

 
 
Kari
Guest
Posts: n/a
 
      05-10-2007
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

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      05-10-2007
On May 10, 4:32 pm, Kari <kari.bel...@rmhp.org> wrote:
> 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

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      05-10-2007
On May 10, 6:16 pm, Paul Lalli <mri...@gmail.com> wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE shows false and Firefox shows true Gianni Javascript 3 07-10-2009 09:18 PM
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
Session var in page_load shows old value, buttonclick shows new . Whats wrong gce ASP .Net 0 05-07-2005 06:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57