Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

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

4 Aufrufe
Direkt zur ersten ungelesenen Nachricht

la...@cvs.perl.org

ungelesen,
14.02.2007, 02:22:0614.02.07
an 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 neue Nachrichten