Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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??


in reply to Syntax error in scritp or so?

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110178]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found