[Ilugc] How to find where Perl is installed

  • From: pnguruji@xxxxxxxxx (guru prasad)
  • Date: Sat, 28 Sep 2002 07:18:24 -0700 (PDT)

Hi,

I hope the following examples would suffice your need.

#!/usr/bin/perl
print "Perl Version ->", $], "<- \n";

or 

#!/usr/bin/perl
use VERSION;
print "Perl Version ->", $PERL_VERSION, "<- \n";

For more info., go through "man perlvar".

Regards,
guru.
--- Prakash J <vnjp_ti@xxxxxxxxx> wrote:

Hi,

  I know that 'which perl' will give the path of the
perl.  But the issue here is, i want to pick up the
correct version of perl.  If i say 'which perl' in
command prompt and say it gives /usr/local/bin/perl.
If I do a perl -v then i will get the version.  If
that version is not the one i wanted to use then how
do i pick up the correct version of the Perl.

  I can use 'where' in 'tcsh' but then i can't use
this for 'sh' bcoz. it doesnt support that command.
  
  Also i need to pick up the CORRECT VERSION OF PERL
using A SCRIPT.

Thanx in Advance,
Prakash.

 --- Sathish <sathishbabut@xxxxxxxxxxxx> wrote: > Hi
Prakash,

use "which perl" at command prompt will solve ur
problem

Regards
Sathish Babu.T



-----Original Message-----
From: ilugc-admin@xxxxxxxxxxxxxxxxxx
[mailto:ilugc-admin@xxxxxxxxxxxxxxxxxx]On Behalf
Of
Prakash J
Sent: Wednesday, September 25, 2002 9:29 PM
To: ilugc@xxxxxxxxxxxxxxxxxx
Subject: [Ilugc] How to find where Perl is
installed


Hi,

   I need to find out where is a particular perl
version is installed in a network/machine.  If
there
are more than one version of perl installed i need
to
pick up the correct version of perl executable.

   What is the easiest way to do this?  

Thanx in advance,
Prakash.



________________________________________________________________________
Missed your favourite TV serial last night? Try
the
new, Yahoo! TV.
       visit http://in.tv.yahoo.com
_______________________________________________
To unsubscribe email
Ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  

http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc

_______________________________________________
To unsubscribe email
Ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  

http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc


________________________________________________________________________
Missed your favourite TV serial last night? Try the
new, Yahoo! TV.
       visit http://in.tv.yahoo.com
_______________________________________________
To unsubscribe email
Ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Other related posts: