- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Is there a need for PERL in /usr/contrib/bin/p...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:36 PM
09-18-2003 01:36 PM
Is there a need for PERL in /usr/contrib/bin/perl?
Is it needed for something else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:48 PM
09-18-2003 01:48 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
If you want to make sure that the new perl gets found before the old, 1) specify an explicit path to /opt/perl/bin/perl and/or 2) make sure the /opt/perl/bin occurrs BEFORE /usr/contrib/bin in your $PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:29 PM
09-18-2003 04:29 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
If you have a httpd server or any common gateway interface programs, they may look for perl in /usr/contrib/bin
You would be surprised how many little utilities and scripts that won't work right with Perl 5.6.1 will break if you remove perl.
Just for a list, try this:
find / -exec grep -l '/usr/contrib/bin/perl' {} \;
You might be surprised at the results.
Also, if you are standardizing on a Perl version, you might want to consider Perl 5.8.0, though it is a dot-zero release.
That doesn't mean ripping out the older perls.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 06:45 PM
09-18-2003 06:45 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
As Patrick said, it is mainly for Q4 analysis. I would leave it there though it may not work for many utilities.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 11:06 PM
09-18-2003 11:06 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
You could release it at least if
you have any scripts,pointed to
this revision.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 11:47 PM
09-18-2003 11:47 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
However, I'm not using httpd or cgi (running MTOE).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2003 01:03 AM
09-19-2003 01:03 AM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
the Perl in /usr/contrib/bin mainly serves for HP custom scripts, of which most themself reside beneath /usr/contrib
e.g.
# find /usr/contrib -type f -name \*.pl|wc -l
426
and mainly serve Q4 analysis
# find /usr/contrib/Q4 -type f -name \*.pl|wc -l
424
The Perl in /usr/contrib/bin on an 11.00 box is quite dated
# /usr/contrib/bin/perl -v
This is perl, version 4.0
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
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.
whereas on an 11i box they already shipped a more recent Perl 5.005.
Because of the dated Perl 4 interpreter (this was before references were introduced in Perl, which dramatically expanded and changed Perl's capabilities and coding style (viz. LoLs, OO etc.)), the code of these HP scripts is really awfull by now, and most of it would even be regarded as deprecated in the Perl community.
Thus, if you are looking for code to learn from how to improve your Perl coding technique and style, I'd suggest to better not consider those scripts.
On the other hand current Perl versions (e.g. 5, 5.6, 5.8) should still be able to compile and execute the old Perl 4 scripts.
So I guess the main reason, why in reality this many times isn't the case is probably owe to wrong paths.
But to save you from trouble I as well would advise to keep the old Perl in /usr/contrib, so that HP scripts still would work, and for your users install a current Perl (they may even expect it).
Then let a symlink from /usr/bin/perl point to your current perl, e.g. to /opt/perl5/bin/perl.
Maybe there isn't even a need for you to install a recent Perl, and you have it already installed but it left unnoticed so far because it weren't in your users' paths.
Just try this
# /usr/sbin/swlist -l fileset -a state -a revision perl
# Initializing...
# Contacting target "moron"...
#
# Target: moron:/
#
# perl B.5.6.1.C
# perl.Perl5 B.5.6.1.C
perl.Perl5.PERL-RUN B.5.6.1.C configured
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2003 12:45 PM
09-19-2003 12:45 PM
Re: Is there a need for PERL in /usr/contrib/bin/perl?
Can be very confusing trying to program in Perl and hitting these 2 very different versions.