jtgault has asked for the wisdom of the Perl Monks concerning the following question:
The warning I get is "Name main::INPUT used only once: possible typo." This occurs on the line with the open statement below:
I curious as to what may be causing this warning, and how I might eliminate it? Any help would be greatly appreciated.use strict; my $filename; print "Enter a filename(with full path) to search.\n"; chomp($filename=<STDIN>); open(INPUT, '$filename') or die ("Can't open '$filename' for reading: $!\n");
|
|---|