[svn:perlfaq] r6816 - perlfaq/trunk

[email protected] Sun, 20 Aug 2006 12:20:08 -0700 (PDT)
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
Author: comdog
Date: Sun Aug 20 12:20:03 2006
New Revision: 6816

Modified:
   perlfaq/trunk/perlfaq4.pod

Log:
* How do I expand function calls in a string?
	+ added parens to localtime to squash warning.



Modified: perlfaq/trunk/perlfaq4.pod
==============================================================================
--- perlfaq/trunk/perlfaq4.pod	(original)
+++ perlfaq/trunk/perlfaq4.pod	Sun Aug 20 12:20:03 2006
@@ -624,7 +624,7 @@
 In most cases, it is probably easier to simply use string concatenation,
 which also forces scalar context.
 
-	print "The time is " . localtime . ".\n";
+	print "The time is " . localtime() . ".\n";
 
 =head2 How do I find matching/nesting anything?