in reply to Re^3: case sensitive addition
in thread case sensitive addition

Hi Limbic Region,
I've been racking my brains out to just to add a simple data and time to script so that user can see when the search was performed.
I found the script below as a standalone and worked perfectly fine. However trying to integrate it failed miserably!
($sec,$min,$hour,$mday,$mon,$year,$wday, $yday,$isdst)=localtime(time); printf "%4d-%02d-%02d %02d:%02d:%02d\n", $year+1900,$mon+1,$mday,$hour,$min,$sec;

Please could you advise.
Thanks

Replies are listed 'Best First'.
Re^5: case sensitive addition
by ww (Archbishop) on May 15, 2010 at 13:49 UTC

    Please, read some docs. Expend some effort on something other than asking questions already answered in those docs.

    Then, show some effort - read the key docs about PM:

    It is gratifying that you do appear to have read one usual element of a message such as this... that is, the admonition to use <code> tags. ++ for that; not so for the rest of your post.