Welcome to the Monastery | |
PerlMonks |
Re^2: Need to search for a string in a fileby jwkrahn (Abbot) |
on Oct 20, 2011 at 20:38 UTC ( [id://932749]=note: print w/replies, xml ) | Need Help?? |
Your prototype says to accept NO arguments but your next line says to accept ONE argument. You should not use prototypes! You should always verify that open worked correctly before trying to use a possibly invalid filehandle.
You are opening the filehandle $log_file but you are trying to read from the filehandle logFile?
In Section
Seekers of Perl Wisdom
|
|