1825007 Members
2878 Online
109678 Solutions
New Discussion юеВ

Perl Version

 
Bill Cioffi
New Member

Perl Version

How do I find out (what command) do I use to find out what Perl Version is on my Box in 11i?
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: Perl Version

# perl -v

will do it.
Joseph Loo
Honored Contributor

Re: Perl Version

hi,

try this:
# swlist -l product|grep -i perl
see column 2

regards.
what you do not see does not mean you should not believe
Charlie Rubeor
Frequent Advisor

Re: Perl Version

You can use swlist, if perl was installed from a depot.

swlist | awk '$1 == "perl" { print $2 }'

Otherwise, if perl is in your path, "perl -v" will give you lots of information.

If on the other hand, perl was not installed from a depot and it is not in your path, I'm afraid you will have to use find to locate it. Something like "find ./ -name perl"

hth
Bob Bean
Advisor

Re: Perl Version

In addition, perl -V at the command line, will provide you with the version, plus whatever flags were set when it was compiled.
Tim D Fulford
Honored Contributor

Re: Perl Version

perl -v
-
Geoff Wild
Honored Contributor

Re: Perl Version

Yes - as everyone has said

# perl -v

This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
(with 1 registered patch, see perl -V for more detail)



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
John Kittel
Trusted Contributor

Re: Perl Version

Our 11i system shipped with 2 different versions of perl installed on it, and then I installed a third. So you may need to resort to find to find all the perls, and then perl -v on each to see the version...

Here is output from my system:

# /opt/perl/bin/perl -v

This is perl, v5.6.1 built for PA-RISC1.1-thread-multi


# /usr/contrib/bin/perl -v

This is perl, version 5.005_02 built for PA-RISC1.1

# /usr/bin/perl -v

This is perl, v5.8.0 built for PA-RISC2.0



- John