>Hi,
>
>Can you tell me exact command / syntax as i struggled lot but didn't
>succeed so that i can store date,time in some variable.
>
Hi,you can use the 'strftime' which is coming from POSIX to get your time
format similar to Unix shell command.
for example,you could write:
use POSIX qw(strftime);
my $str = strftime("%Y_%m_%d",localtime);
print $str;
that is similar to:
$ date +%Y_%m_%d
Hope it helps.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>