error closing a file

L

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
 
L

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top