Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Explicit Package?by toolic (Bishop) |
on Feb 07, 2019 at 19:39 UTC ( [id://1229561]=note: print w/replies, xml ) | Need Help?? |
use v5.14;That line loads the strict pragma, the same as if you had: Refer to use VERSION: 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
|
|