http://qs321.pair.com?node_id=1229561


in reply to Explicit Package?

use v5.14;
That line loads the strict pragma, the same as if you had:
use strict;
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 strict
That is the reason for your error messages. You need to declare your variables with my and open your file handles before using them.