Perl file handling gone wrong?

Sam

New member
Hi, I have this code:

open FILE, ">", "$hhmmss.txt";
print FILE "$hhmmss TEXT $nick $arg\n";
close(FILE);

It gives me an error "print() on closed filehandle FILE on C:\strawberry\perl\bot.pl on line 118.". Why is that?!
 
Back
Top