in reply to Explicit Package?
use v5.14;That line loads the strict pragma, the same as if you had:
Refer to use VERSION:use strict;
Similarly, if the specified Perl version is greater than or equal to 5.12.0, strictures are enabled lexically as with use strictThat is the reason for your error messages. You need to declare your variables with my and open your file handles before using them.
|
---|
In Section
Seekers of Perl Wisdom