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.
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.
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.
$^V
shows the "...revision, version, and subversion of the Perl interpreter." From perlvar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With