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,
Of
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
Prakash Jinstalled
Sent: Wednesday, September 25, 2002 9:29 PM
To: ilugc@xxxxxxxxxxxxxxxxxx
Subject: [Ilugc] How to find where Perl is
there
Hi,
I need to find out where is a particular perl
version is installed in a network/machine. If
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? Trythe
new, Yahoo! TV.http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc
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.
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