Re: Possible bug in perlfaq4.pod

[email protected] (Robert Spier)
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
Good catch.

I've removed the section from the CVS copy.

Thanks!

-R

--- perlfaq4.pod        2 Oct 2003 04:44:33 -0000       1.52
+++ perlfaq4.pod        11 Nov 2003 02:21:34 -0000
@@ -415,14 +415,6 @@
        return 1+int((((localtime(shift || time))[5] + 1899))/1000);
     }
 
-You can also use the POSIX strftime() function which may be a bit
-slower but is easier to read and maintain.
-
-       use POSIX qw/strftime/;
-
-       my $week_of_the_year = strftime "%W", localtime;
-       my $day_of_the_year  = strftime "%j", localtime;
-
 On some systems, the POSIX module's strftime() function has
 been extended in a non-standard way to use a C<%C> format,
 which they sometimes claim is the "century".  It isn't,


At Thu, 6 Nov 2003 15:53:53 +0100,
Stefano Rodighiero wrote:
> 
> Hello.
> 
> I think there's an error in perlfaq4.pod.
> In 
> 
>   =head2 How do I find the current century or millennium?
> 
> the part after 
> 
>   " You can also use the POSIX strftime() function which may be a bit
>   slower but is easier to read and maintain.
>  
>           use POSIX qw/strftime/; 
>           [...] "
> 
> seems to refer to the previous question. 
> 
> cheers,
> Stefano Rodighiero
> 
> -- 
> Stefano Rodighiero                          | http://larsen.perlmonk.org
> mailto:[email protected]                       | http://www.perl.it
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.