1827819 Members
1713 Online
109969 Solutions
New Discussion

Perl version

 
Macho_2
Frequent Advisor

Perl version

My server currently running HPUX 11.00 with Perl version 4.0 . I want to upgrade the Perl version to 5.8.7.
Can I upgrade the version from 4.0 to 5.8.7.
5 REPLIES 5
Luk Vandenbussche
Honored Contributor

Re: Perl version

Install the latest depot.
You can download it from this site

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL
Peter Godron
Honored Contributor

Re: Perl version

Hi,
as 4.0 was around in 90's I would recommend a review of the code, to make use of new functionality!

I assume you are not talking around upgrading release by release, but installing your 5.8.7 and re-testing.

I have never seen such a large step upgrade, so please let us know how you get on.

Side note: 11.0 is out of support since 31/12/06.

James R. Ferguson
Acclaimed Contributor

Re: Perl version

Hi:

If you plan/need to compile Perl moduels that have C code you will need to use the same compiler that Perl was used to compile Perl.

If you have the HP Ansii C compiler licensed, I'd download the HP-compiled Perl as noted:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL

On the other hand, if you lack the HP Ansii C compiler, I'd fetch a 'gcc' compiled version:

http://mirrors.develooper.com/hpux/downloads.html

Merijn's compilations also include some additional, useful modules not part of the core distribution.

Regards!

...JRF...
H.Merijn Brand (procura
Honored Contributor

Re: Perl version

And as perl4 can run happily next to perl5, I would call it an upgrade, but an install.

If you have any production code/scripts that run on perl4, try this first:

# perl -wc script

-w is warn
-c is check

Most perl4 code will run fine on perl5, but things like 'local' and 'tie' will probably behave quite differently.

Then there was oraperl and friends, as perl4 did not support modules, and database access had to be built in in the binary. If you have scripts like that, prepare for a good day of reading how to use the DBI.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Macho_2
Frequent Advisor

Re: Perl version

I'm managed to upgrade the perl script and it is running fine now.