Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Differences between UNIX Perl-5 and AIX Perl-5 ?

Status
Not open for further replies.

browserice

Technical User
Aug 20, 2006
21
US
Can I get a detail description (link or document) about the differences between UNIX's Perl-5 coding and AIX's Perl-5 coding ?

I am asking because my first Perl program I did (posted here on this forum section about 1 month ago) was checked/corrected by other members but when I ran it on AIX, I had to change some of the codes because they were not recognized. I assume its because whomever had corrected my code, was doing it with UNIX in mind and not AIX.

So to prevent doing multiple corrections because AIX doesn't recognize some Perl-5 codes, having a detail descriptions of the differences between UNIX's Perl-5 and AIX's Perl-5 would save me time.
 
It's more likely that your two systems have different versions of Perl installed, rather than platform-specific differences in Perl. Run "perl -v" on the command line on both and compare the first line of output.

For instance, I get "This is perl, v5.8.8 built for i486-linux-gnu-thread-multi".
 
I checked the AIX Perl version :

>perl -v

This is perl, version 4.0

$RCSfile: perl.c,v $$Revision: 1.1 $$Date: 1996/05/10 05:06:54 $
Patch level: 36

Copyright (c) 1989, 1990, 1991, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
 
That's quite an old version. Most people bicker about the differences between 5.6 and 5.8. I've never used version 4, but I understand that v5 was a major rework.

Maybe you should see if you can get a newer version installed? Maybe in a separate directory, so any existing perl 4 scripts on the AIX box won't be impacted?

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Perl 4 has been obsolete since version 5 was released in 1994! Time for an upgrade methinks.
 
I have no power over any installation/updates on the client's server. No real discussions about development of tools have been done with the managers (except a received "We do not build tools" type of response on a quick and go question. But I am sure that manager didn't understand what I meant as he was in a hurry).

For my departement, building tools would increase performance, speed up task's completion and reduce human errors. Others have told me to do it anyway and that they expect management to say no if we ask them (so its a do-not-even-think-to-ask-them type of statement).

So I am stuck with Perl-4.
 
There are perfectly good, precompiled and free downloads for Perl on AIX all the way up to current releases for use within business. ActiveState are one such source, but there are a great many such. If you've the space to place the binaries without causing grief I'd simply recommend placing an up to date copy of Perl in a non-standard place on the machine and use it for anything new that you need to write while leaving the old installation well alone.
 
I started another thread oriented to Perl-4 as this one here will lead people into confusion since it is not about Perl-5 anymore.

You can close this thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top