<[EMAIL PROTECTED]> wrote on 10/13/2005 02:18:13 PM:

> How do you obtain a
> timestamp/date in the form of YYYYMMDD-HHMISS from ActivePerl's 
> date() function on Windoze?  The following code doesn't want to work : 
> chop(my $myDate = `date +%Y%m%d-%H%M%S`); 
> 
The backticks are an escape to execute an operating system command. Use 
localtime() 
or gmtime() to get the date and time. Then format using sprintf.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to