>$log="/tmp/ito.log" >`echo Warning: some text > $log` > >I need to expand the "date" command somewhere in this echo command, please >show me how.
the perl localtime function returns the same information as a unix date command. printing to an append filehandle in perl is similar to echoing to a > file. The upshot of all this is that you can skip system calls entirely in this case. my $log = "somepath"; my $date = localtime; open OUTFH, ">>$log" or die; print OUTFH "Warning: sometext $date\n"; or something along those lines. in any case I have been under the impression that calls to the system are more appropriately made like this: system "date"; than this: `date` though I can't remember what gave me that impression. =) "I think for my lunch tomorrow I'll make a tuna and pickle triangle bunwich." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]