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


in reply to Which perl version?

perl -v

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

Replies are listed 'Best First'.
Re: Which perl version?
by Abigail-II (Bishop) on Jul 21, 2003 at 09:44 UTC
    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