Placed At : BOM
Durga Prasad@SATYAM
12/24/2001 09:51 AM
The code should be as follows:
$datestamp=localtime();
open (TEMP, ">>\/usr\/local\/$datestamp");
print TEMP ("$datestamp\n");
close TEMP;
exit;
This is correct for Unix. Changes for Win32 ar
, December 21, 2001 16:27
To: [EMAIL PROTECTED]
Subject: RE: executing system call
> I believe you would be better off (again matter of
> opinion) using timelocal like
>
> [SNIP]
Aww... timelocal isn't in the Perl5 Pocket Reference -
which Larry Wall says is perfect. I did manage
--- Scott Lutz <[EMAIL PROTECTED]> wrote:
> 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";
'date', on a Windows box, allows you to display or set t
> I believe you would be better off (again matter of
> opinion) using timelocal like
>
> [SNIP]
Aww... timelocal isn't in the Perl5 Pocket Reference -
which Larry Wall says is perfect. I did manage to find
localtime, maybe that might do instead. :)
Compare the documentation for timelocal and
> 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";
Don't do that! The Win32 date command is interactive - it
expects you to change the date. Beside
1 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
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