I doubt that having -w on the command line or not is the cause for Perl being unable to open the file. But Perl tells you why it couldn't open a file in the $! variable:
open(LOG, $file) or die ("\n\tPFAD/FILENAME FALSCH ? \n\nLogfile konnt +e nicht geoeffnet werden: $!"); #$file öffnen
Some stylistic notes:
&Readinfo("$infofile"); &Read("$file1"); &Read("$file2"); &Write("$file1"); &Write("$file2"); &Writeinfo("$infofile");
should be
Readinfo($infofile); Read($file1); Read($file2); Write($file1); Write($file2); Writeinfo($infofile);
and
index("$line","STEAM_0:",32)))
should be
index($line,"STEAM_0:",32)))In reply to Re: problems opening logfile
by Corion
in thread problems opening logfile
by m0ve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |