in reply to problems opening logfile
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)))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problems opening logfile
by m0ve (Scribe) on Aug 10, 2007 at 09:25 UTC | |
by Corion (Patriarch) on Aug 10, 2007 at 09:27 UTC | |
by m0ve (Scribe) on Aug 10, 2007 at 09:36 UTC |