note
toolic
<blockquote><i>
use v5.14;
</i></blockquote>
That line loads the [doc://strict] pragma, the same as if you had:
<c>
use strict;
</c>
Refer to [doc://use|use VERSION]:
<blockquote><i>
Similarly, if the specified Perl version is greater than or equal to 5.12.0, strictures are enabled lexically as with use strict
</i></blockquote>
That is the reason for your error messages. You need to declare your variables with [doc://my] and [doc://open] your file handles before using them.
1229560
1229560