Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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).


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."

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

    Or, for lots more info:

    $ perl -V


      Many thanks all!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2022-01-25 13:50 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (66 votes). Check out past polls.