http://www.perlmonks.org?node_id=276185

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!