<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title><![CDATA[Perl 6: WITCH lcurly]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?witch_lcurly</link>
<description></description>
<pubDate>Mon, 22 Feb 2010 22:50:23 -0000</pubDate>
<webMaster>synedra@gmail.com</webMaster>
<generator>Socialtext Workspace v2.14.7.2</generator>

<item>
<title><![CDATA[WITCH lcurly]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?witch_lcurly</link>
<description><![CDATA[<div class="wiki">
<h1 id="mnemonics">Mnemonics</h1>
<p>
 &quot;code&quot;, &quot;block&quot;, &quot;enclose&quot;, &quot;brace yourself&quot;</p>
<ul><ul>
<li>primary use is to enclose literal code</li>
<li>also used for hashes</li>
</ul></ul>
<h1 id="used_as_a_brace_pair_or_quote_pair">Used as a brace pair or quote pair</h1>
<p>
{} creates a <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S04.html#The_Relationship_of_Blocks_and_Declarations">Closure<!-- wiki-renamed-hyperlink "Closure"<http://perlcabal.org/syn/S04.html#The_Relationship_of_Blocks_and_Declarations> --></a><br />
{} after a class name (is just a closure but) means create a pre-vivification <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S12.html#Autovivifying_objects">protoobject<!-- wiki-renamed-hyperlink "protoobject"<http://perlcabal.org/syn/S12.html#Autovivifying_objects> --></a>.<br />
{} except with specific contents inside or as part of a variable term denotes <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S04.html#Statement_parsing">use for hashes<!-- wiki-renamed-hyperlink "use for hashes"<http://perlcabal.org/syn/S04.html#Statement_parsing> --></a><br />
{} empty as part of a term allows hashes to be <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S02.html#Literals">interpolated<!-- wiki-renamed-hyperlink "interpolated"<http://perlcabal.org/syn/S02.html#Literals> --></a><br />
{} during hash declaration sets up <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S09.html#User-defined_array_indexing">user defined indexing<!-- wiki-renamed-hyperlink "user defined indexing"<http://perlcabal.org/syn/S09.html#User=-defined_array_indexing> --></a><br />
{} injects hash information in POD <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S26.html">delimited blocks<!-- wiki-renamed-hyperlink "delimited blocks"<http://perlcabal.org/syn/S26.html> --></a><br />
{} when used as a user supplied delimiter to a quote, match, or substitution, is merely a general quoting character</p>
<h1 id="when_used_inside_regexes">When used inside regexes</h1>
<p>
{} within a rule institutes an &quot;action&quot;&lt;&gt;<br />
{} also in a <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S05.html#Modifiers">substitution<!-- wiki-renamed-hyperlink "substitution"<http://perlcabal.org/syn/S05.html#Modifiers> --></a> injects code execution in a match<br />
{N} or {N..M} postfix to a match term is a <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S05.html#Bracket_rationalization">repeat count<!-- wiki-renamed-hyperlink "repeat count"<http://perlcabal.org/syn/S05.html#Bracket_rationalization> --></a> (a closure returning a range)<br />
<span class="nlw_phrase">&lt;{}&gt;<!-- wiki: {{&lt;{}&gt;}} --></span> in <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S05.html#Extensible_metasyntax_(%3C...%3E)">extensible metasyntax<!-- wiki-renamed-hyperlink "extensible metasyntax"<http://perlcabal.org/syn/S05.html#Extensible_metasyntax_(%3C...%3E)> --></a> allows injection of rules generated by code.<br />
<span class="nlw_phrase">&lt;?{}&gt; or &lt;!{}&gt;<!-- wiki: {{&lt;?{}&gt; or &lt;!{}&gt;}} --></span> also <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S05.html#Extensible_metasyntax_(%3C...%3E)">extensible metasyntax<!-- wiki-renamed-hyperlink "extensible metasyntax"<http://perlcabal.org/syn/S05.html#Extensible_metasyntax_(%3C...%3E)> --></a> performs an assertion.</p>
<h1 id="as_an_adverb">As an adverb</h1>
<p>
{} can be used as parenthesisers in adverbs</p>
<h1 id="old_deprecated_or_other_language_uses">Old, deprecated, or other language uses</h1>
<p>
 {N,M} is used as a repeat count in many regular expression implementations. In Perl6 that is ** N..M</p>
</div>
]]></description>
<author>Samuel Harrington</author>
<guid isPermaLink="true">http://www.perlfoundation.org/perl6/index.cgi?witch_lcurly</guid>
<pubDate>Mon, 22 Feb 2010 22:50:23 -0000</pubDate>
</item>

</channel>
</rss>