Don't ask to ask, just ask | |
PerlMonks |
Re: Syntax error in scritp or so?by FloydATC (Deacon) |
on Dec 12, 2014 at 15:34 UTC ( [id://1110178]=note: print w/replies, xml ) | Need Help?? |
As long as you don't check the result of open(), the most likely explanation is that it fails and therefore does not produce a file handle valid for reading. Try adding or die "Open failed '$mailcheck': $!" immediately after open(HANDLE, $mailcheck) and you'll most likely see the root cause of the problem. Umm.... a quick update: I just noticed the close() statement inside the read loop. Probably not the best place for it.
-- FloydATC
Time flies when you don't know what you're doing
In Section
Seekers of Perl Wisdom
|
|