in reply to Undefined value as a symbol reference

Here is the code with number lines:

93 sub getComment 94 { 95 my $switchIp = $_[0]; 96 my $INFILE; 97 open ($INFILE, '<', 'templateHosts' ) or die "can't open f +ile $!"; 98 my @hostsText = <$INFILE>;