Nik has asked for the wisdom of the Perl Monks concerning the following question:
when the user enters index.pl his ip address is being logges along with the time. Problem is that when the user goes to games.pl then he logger puts one more record to the log.txt telling me that the user also gone to games.pl and it gives me the file he doewnloaded.localhost -> Tue Apr 6 07:50 localhost -> Tue Apr 6 07:51 -> + ChickenInvaders localhost -> Tue Apr 6 07:51 localhost -> Tue Apr 6 07:52 -> + BrainsBreaker localhost -> Tue Apr 6 07:54
can you help me out?!?open(OUT, ">>../data/texts/log.txt") or die $!; print OUT $host, " "x(40-length($host)), "-> ", $xronos, "\n"; close(OUT); and the the log also inside games.pl <code> open(OUT, ">>../data/texts/log.txt") or die $!;print(OUT $host, " "x(4 +0-length($host)), "-> ", $xronos, " -> ", $game, "\n"); close(OUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text file Update problem!
by Zaxo (Archbishop) on Apr 08, 2004 at 18:10 UTC | |
| |
|
Re: Text file Update problem!
by chip (Curate) on Apr 08, 2004 at 19:29 UTC | |
|