develooper Front page | perl.perl6.language | Postings from June 2006

[svn:perl6-synopsis] r9724 - doc/trunk/design/syn

From:
audreyt
Date:
June 29, 2006 19:35
Subject:
[svn:perl6-synopsis] r9724 - doc/trunk/design/syn
Message ID:
20060630023445.EB154CC08B@x12.develooper.com
Author: audreyt
Date: Thu Jun 29 19:34:45 2006
New Revision: 9724

Modified:
   doc/trunk/design/syn/S02.pod

Log:
* S02: kolibrie++ noticed that a heredoc without a semicolon is confusing,
       so we reasserted the Perl5 semantics by a TimToady++ ruling.

Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Thu Jun 29 19:34:45 2006
@@ -1811,15 +1811,18 @@
 Heredocs are no longer written with C<<< << >>>, but with an adverb on
 any other quote construct:
 
-    print qq:to/END/
+    print qq:to/END/;
         Give $amount to the man behind curtain number $curtain.
         END
 
-Other adverbs are also allowed:
+Other adverbs are also allowed, as are multiple heredocs within the same
+expression:
 
-    print q:c:to/END/
+    print q:c:to/END/, q:to/END/;
         Give $100 to the man behind curtain number {$curtain}.
         END
+        Here is a $non-interpolated string
+        END
 
 =item *
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About