> From: Bellenger, Bruno (Paris) [mailto:[EMAIL PROTECTED]]
> Subject: RE: Displaying time in PERL

> Shortest one so far. And not even bad on the obfuscation criteria. 
> Well done. 

> > printf ("%02d:%02d:%02d",(localtime(time))[2,1,0]);


I can't take credit for it, I saw someone else use a slice under a similar
circumstance, and just applied it in this situation.  But thank you.

I found it to be so useful that I macro'd it in my IDE like so:

printf ("%02d:%02d:%02d - MESSAGE\n",(localtime(time))[2,1,0]);


Chuck.
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to