VincentK has asked for the wisdom of the Perl Monks concerning the following question:
Hello everyone. Long time reader, first time poster here.
On my Windows 7 box, when I run the following command , I see that I have PERL version 5.14 installed.
However, when I run the following script without an explicit 'use 5.14;' notation, I receive an error.perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin +32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2011, Larry Wall Binary build 1402 [295342] provided by ActiveState http://www.Acti +veState.com Built Oct 7 2011 15:19:36
This worksuse strict; say "sent text via say";
Within the script if I ask for the version , I receive back '5.014002'. This is not the same as v5.14.2, correct? Or is it?use strict; use v5.14; say "sent text via say";
Am I to understand that by default version 5.014002 not 5.14 is being used?use strict; print $];
I apologize if I am missing obvious here. Thank you very much.
|
|---|