error closing a file

error closing a file

am 05.10.2007 21:25:28 von lerameur

HI,

I am getting this error while closing a file:

Use of uninitialized value in ref-to-glob cast at ./spam_working2.pl
line 170.
Can't close out_file Bad file number at ./spam_working2.pl line 170.

line 170: close $out_file or die "Can't close out_file $!";

why isn't it closing?
ken

Re: error closing a file

am 05.10.2007 21:27:29 von lerameur

On Oct 5, 3:25 pm, lerameur wrote:
> HI,
>
> I am getting this error while closing a file:
>
> Use of uninitialized value in ref-to-glob cast at ./spam_working2.pl
> line 170.
> Can't close out_file Bad file number at ./spam_working2.pl line 170.
>
> line 170: close $out_file or die "Can't close out_file $!";
>
> why isn't it closing?
> ken

Ok I answered my own question, I had previously commented out the open
file lines...