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, Ratawhile ( my $line = <HANDLE>) { if ( $line =~ /(no mail)/i ) { ... } close ( HANDLE ); }
In reply to Re: Syntax error in scritp or so?
by Ratazong
in thread Syntax error in scritp or so?
by streametch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |