in reply to Printing a log file in a CGI script
in thread Reading data from a document.txt
Your problem is a simple one, albeit one that trips up many people. The line open LOG, "anuncis.txt" || die "$!"; isn't doing what you expect. You need to change it to either open(LOG, "anuncis.txt") || die "$!"; or open LOG, "anuncis.txt" or die "$!"; What you have, in effect, is open LOG, ("anuncis.txt" || die "$!");
|
|---|