Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

3 views
Skip to first unread message

la...@cvs.perl.org

unread,
Feb 14, 2007, 2:22:06 AM2/14/07
to perl6-l...@perl.org
Author: larry
Date: Tue Feb 13 23:22:05 2007
New Revision: 13586

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

Log:
typos
changed :to be the short form for :heredoc


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod (original)
+++ doc/trunk/design/syn/S02.pod Tue Feb 13 23:22:05 2007
@@ -1952,20 +1952,20 @@
:f :function Interpolate & calls
:c :closure Interpolate {...} expressions
:b :backslash Interpolate \n, \t, etc. (implies :q at least)
- :to Parse result as heredoc terminator
+ :to :heredoc Parse result as heredoc terminator
:regex Parse as regex
:subst Parse as substitution
:trans Parse as transliteration
:code Quasiquoting

-You may omit the first colon by joining an initial 'Q', 'q', or 'qq' with
+You may omit the first colon by joining an initial C<Q>, C<q>, or C<qq> with
a single short form adverb, which produces forms like:

qw /a b c/; # P5-esque qw// meaning q:w
Qc '...{$x}...'; # Q:c//, interpolate only closures
qqx/$cmd @args/ # equivalent to P5's qx//

-(Note that C<qx//> doesn't intepolate.)
+(Note that C<qx//> doesn't interpolate.)

If you want to abbreviate further, just define a macro:

0 new messages