[svn:perlfaq] r3688 - perlfaq/trunk

[email protected] Thu, 16 Mar 2006 09:33:15 -0800 (PST)
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
Author: comdog
Date: Thu Mar 16 09:33:14 2006
New Revision: 3688

Modified:
   perlfaq/trunk/perlfaq3.pod
   perlfaq/trunk/perlfaq4.pod

Log:
* perlfaq3: Is there a ctags for Perl?
	+ Added a paragraph defining ctags

* perlfaq4: How do I find the day or week of the year?
	+ No need for Time::Local when we already have POSIX warmed up.


Modified: perlfaq/trunk/perlfaq3.pod
==============================================================================
--- perlfaq/trunk/perlfaq3.pod	(original)
+++ perlfaq/trunk/perlfaq3.pod	Thu Mar 16 09:33:14 2006
@@ -222,6 +222,10 @@
 
 (contributed by brian d foy)
 
+Ctags uses an index to quickly find things in source code, and many
+popular editors support ctags for several different languages,
+including Perl.
+
 Exuberent ctags supports Perl: http://ctags.sourceforge.net/
 
 You might also try pltags: http://www.mscha.com/pltags.zip
@@ -984,9 +988,12 @@
 
 =head2 What's MakeMaker?
 
-This module (part of the standard Perl distribution) is designed to
-write a Makefile for an extension module from a Makefile.PL.  For more
-information, see L<ExtUtils::MakeMaker>.
+(contributed by brian d foy)
+
+The C<ExtUtils::MakeMaker> module, better known simply as "MakeMaker",
+turns a Perl script, typically called C<Makefile.PL>, into a Makefile.
+The unix tool C<make> uses this file to manage dependencies and actions
+to process and install a Perl distribution.
 
 =head1 REVISION
 

Modified: perlfaq/trunk/perlfaq4.pod
==============================================================================
--- perlfaq/trunk/perlfaq4.pod	(original)
+++ perlfaq/trunk/perlfaq4.pod	Thu Mar 16 09:33:14 2006
@@ -407,10 +407,9 @@
 To get the day of year for any date, use the Time::Local module to get
 a time in epoch seconds for the argument to localtime.
 
-	use POSIX qw/strftime/;
-	use Time::Local;
+	use POSIX qw/mktime strftime/;
 	my $week_of_year = strftime "%W",
-		localtime( timelocal( 0, 0, 0, 18, 11, 1987 ) );
+		localtime( mktime( 0, 0, 0, 18, 11, 87 ) );
 
 The Date::Calc module provides two functions to calculate these.