Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 taking refuge in the Monastery: (1)
As of 2018-08-17 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (174 votes). Check out past polls.

    Notices?