in reply to Re: Re: Time and Date Output
in thread Time and Date Output

Bah, you call that lazy? :)

$ date > myfile.date

Even the perl version's shorter.

$ perl -e 'print `date`' > myfile.date

Replies are listed 'Best First'.
(jeffa) 4Re: Time and Date Output
by jeffa (Bishop) on Jul 20, 2003 at 15:49 UTC
    I am inclined to consider your laziness as false laziness. The problem is that while you type less characters, you cause the CPU to work more:
    use Benchmark; timethese(-2, { inhouse => sub { $_ = scalar localtime }, outsource => sub { $_ = `date` }, });

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)