in reply to Getting the date of today as a number (was: Date question)

print (localtime())[4];

Replies are listed 'Best First'.
Re^2: Getting the date of today as a number (was: Date question)
by Persib (Acolyte) on May 22, 2007 at 10:39 UTC
    i tried yours, not working..

    then i modified yours so it looks like

    perl -e 'print ((localtime)[5])'
    and its work.

    zak