Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A perl command line that prints the perl version it is using to run your script

Tags:

I'd like to know if someone knows a function or command that I can put at the beginning of my Perl script that tells the user for example "this script is being run by perl v 5.XXX".
Specially when we have many versions installed.

like image 243
Tetraodienne Avatar asked Jan 01 '14 23:01

Tetraodienne


People also ask

Which command is used to run perl script programs?

To make a Perl script file executable, you need to add '#!/usr/bin/perl' to the beginning of the script. There are many ways to run Perl scripts on Linux: 1. Run the "perl" command with the Perl script included in the command line.

Which command is used to see version of perl the local system is running?

Type perl -v on a command line to find out which version. ActiveState Perl has binary distributions of Perl for many platforms. This is the simplest way to install the latest version of Perl.


1 Answers

$^V shows the "...revision, version, and subversion of the Perl interpreter." From perlvar.

like image 112
Kenosis Avatar answered Sep 30 '22 04:09

Kenosis