S Sam New member Jan 16, 2010 #1 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?!
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?!