Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Which perl version?

by bodmin (Acolyte)
on Jul 21, 2003 at 08:43 UTC ( #276185=perlquestion: print w/replies, xml ) Need Help??

bodmin has asked for the wisdom of the Perl Monks concerning the following question:

Hello, just a quick and easy one - how does one find out the version of perl running on the server? Is there a command which I can run on the command line?

Replies are listed 'Best First'.
Re: Which perl version?
by moxliukas (Curate) on Jul 21, 2003 at 08:46 UTC
    perl -v

    You can also check $^V variable from perl itself. See perlvar for details

      Yeah, but the value of $^V is weird. I rather prefer $] which holds a human readable value of the version, and which can easily be compared with floating numbers.

      Perlvar suggest the use of $^V over $], because $^V compares so neatly with v-strings. However, it was recently decided (after getting Larry's blessing) that v-strings will die. (And there was much rejoicing).

      Abigail

Re: Which perl version?
by strat (Canon) on Jul 21, 2003 at 08:48 UTC
    Yes, try perl -v and for additional Information, you could try perl -V (although the latter might not work with all perl versions)

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Re: Which perl version?
by edan (Curate) on Jul 21, 2003 at 08:48 UTC
    $ perl -v

    Or, for lots more info:

    $ perl -V

    HTH

    --
    3dan
      Many thanks all!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://276185]
Approved by edan
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2021-11-27 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?