I believe you would be better off (again matter of opinion) using timelocal 
like

        my ($mysec, $mymin, $myhour, $myday, $mymon, $myyear) = timelocal(time);
        my $datestamp = sprintf "%04d%02d%02d", (1900+$myyear), $mymon+1, $myday;

        This would give for 21 dec 2001 the value 20011221.

Wags ;)
-----Original Message-----
From: Scott Lutz [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 15:52
To: Beginners (E-mail)
Subject: executing system call


I am trying to get the date to create a file named after the current
date. 
( running under win32 )

here is the code : 
my $datestamp=`date`;
print "File name created : $datestamp\n";

gives me no output.

any ideas??

Scott Lutz
technical support
Pacific Online
http://www.paconline.net



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to