MelaOS has asked for the wisdom of the Perl Monks concerning the following question:
sub appendToTsum { my ($trigger) = @_; my $foo = "/tmp/foo"; my $home = "\\\\t3file3\\datools\\tools\\MTP\\"; my $logfile = $home."logappend.txt"; open (LOG, ">>$logfile"); my $time = time(); $time = localtime($time); if(-e $foo){ open (SUM, ">>$foo") or print log "$time: Can't write to $foo" +; print SUM "\n\n*********************************************** +******\n"; print SUM "** $trigger **\n"; print SUM "*************************************************** +**\n"; close (SUM); } close (LOG); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Append problem!!PLS HELP!
by jwkrahn (Abbot) on Aug 14, 2007 at 02:47 UTC | |
Re: Append problem!!PLS HELP!
by GrandFather (Saint) on Aug 14, 2007 at 03:08 UTC | |
Re: Append problem!!PLS HELP!
by cdarke (Prior) on Aug 14, 2007 at 04:46 UTC | |
Re: Append problem!!PLS HELP!
by jesuashok (Curate) on Aug 14, 2007 at 03:08 UTC | |
Re: Append problem!!PLS HELP!
by andreas1234567 (Vicar) on Aug 14, 2007 at 09:57 UTC | |
by MelaOS (Beadle) on Aug 15, 2007 at 04:12 UTC |