Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Syntax error in scritp or so?

by Ratazong (Monsignor)
on Dec 12, 2014 at 11:38 UTC ( #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
Node Status?
node history
Node Type: note [id://1110150]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2018-05-27 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?