Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Syntax error in scritp or so?

by Ratazong (Monsignor)
on Dec 12, 2014 at 11:38 UTC ( [id://1110150]=note: print w/replies, xml ) Need Help??


in reply to Syntax error in scritp or so?

while ( my $line = <HANDLE>) { if ( $line =~ /(no mail)/i ) { ... } close ( HANDLE ); }
You seem to close the handle inside the loop where your read from it. Please be sure that you only close a file after you finished reading it.

HTH, Rata

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found