in reply to uninitialized value warning in reading file

Not an alternative to better coding practice suggested by ant9000 but:

#!/usr/bin/perl use strict; use warnings; no warnings qw(uninitialized); #turn off uninit warnings
See perldoc perllexwarn ...