----- Original Message -----
From: "Eric Hanchrow" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, October 14, 2005 8:08 PM
Subject: Re: date() function does not work in Windoze...
I must say I'm appalled at the number of people who suggest sprintf
instead of strftime. People of Earth, I implore you: read about
strftime. It's what you want.
--
Yes Eric, you are absolutely right, but you write into Activestate
listserver :-) ActivePerl is primary intended for Windows programmers.
I cite from my Activestate Perl documentation:
---CUT---
strftime
Convert date and time information to string. Returns the string.
[....]
Consult your system's strftime() manpage for details about these and the
other arguments. If you want your code to be portable, your format (fmt)
argument should use only the conversion specifiers defined by the ANSI C
standard.
---CUT---
Hmm, my (Windows) system have not strftime() manpage! What now? :-)
And next functions on the same doc page says:
---CUT---
strlen
strlen() is C-specific, use length() instead, see length in the perlfunc
manpage.
strncat
strncat() is C-specific, use .= instead, see the perlop manpage.
strncmp
strncmp() is C-specific, use eq instead, see the perlop manpage.
---CUT---
In other words: do not use C-specific, use Perl specific. As ill-luck would
have it ... strftime() is on the same doc page, where other deprecated
functions are :-)
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs