With a shebang like #!/usr/bin/env perl
how can I make accessible to the script the perl I am using for running the script?
(Like in the perl -E 'say $ENV{_}'
command line).
From perlvar, there's the $^X
variable you could use.
$ perl -e 'print $^X, "\n";'
/usr/bin/perl5.12.4
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