if (!defined $info{mount}) { my $displayLine = $line; chomp $displayLine; print "\$info{mount} undefined when \$line = [$displayLine]\n"; } else { $devices{ $info{mount} } = \%info; }