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

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

<channel>
<title><![CDATA[Perl 6: WITCH equal]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?witch_equal</link>
<description></description>
<pubDate>Mon, 20 Apr 2009 15:24:05 -0000</pubDate>
<webMaster>synedra@gmail.com</webMaster>
<generator>Socialtext Workspace v2.14.7.2</generator>

<item>
<title><![CDATA[WITCH equal]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?witch_equal</link>
<description><![CDATA[<div class="wiki">
<h1 id="mnemonics">Mnemonics</h1>
<p>
 &quot;equal&quot;, &quot;evaluate&quot;, &quot;iterate&quot;</p>
<h1 id="used_alone">Used alone</h1>
<p>
= assigns values as in common parlance<br />
= after many infix operators creates a mutant assignment form of that operator<br />
= inside a Signature marks parameters as optional and supplies default values<br />
= after a property supplies it with an initial value<br />
= at the beginning of a line may be introducing a <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S26.html">POD element<!-- wiki-renamed-hyperlink "POD element"<http://perlcabal.org/syn/S26.html> --></a></p>
<h1 id="operators_containing_this_character">Operators containing this character</h1>
<p>
:= aliases an identifier via <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Item_assignment_precedence">runtime binding<!-- wiki-renamed-hyperlink "runtime binding"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence> --></a><br />
::= aliases an identifier via <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Item_assignment_precedence">compile time binding<!-- wiki-renamed-hyperlink "compile time binding"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence> --></a><br />
=:= <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Item_assignment_precedence">container identity comparitor<!-- wiki-renamed-hyperlink "container identity comparitor"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence> --></a><br />
!= is short for !==<br />
== compares for value equivalence<br />
=== compares containers or values with dwimmery<br />
<span class="nlw_phrase">&gt;=<!-- wiki: {{&gt;=}} --></span> <span class="nlw_phrase">&lt;=<!-- wiki: {{&lt;=}} --></span> and <span class="nlw_phrase">&lt;=&gt;<!-- wiki: {{&lt;=&gt;}} --></span> are also <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Chained_comparisons">comparisons<!-- wiki-renamed-hyperlink "comparisons"<http://perlcabal.org/syn/S03.html#Chained_comparisons> --></a>. Note this means there is no assignment mutation.<br />
<span class="nlw_phrase">=&gt;<!-- wiki: {{=&gt;}} --></span> &quot;fat arrow&quot; pair constructor<br />
<span class="nlw_phrase">p5=&gt;<!-- wiki: {{p5=&gt;}} --></span> the <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Comma_operator_precedence">perl5 compatibility fat arrow<!-- wiki-renamed-hyperlink "perl5 compatibility fat arrow"<http://perlcabal.org/syn/S03.html#Comma_operator_precedence> --></a><br />
<span class="nlw_phrase">=<!-- wiki: {{=}} --></span> <span class="nlw_phrase">=&gt;<!-- wiki: {{=&gt;}} --></span> <span class="nlw_phrase">=<!-- wiki: {{=}} --></span> <span class="nlw_phrase">=&gt;&gt;<!-- wiki: {{=&gt;&gt;}} --></span> <span class="nlw_phrase">&lt;&lt;=<!-- wiki: {{&lt;&lt;=}} --></span> <span class="nlw_phrase">=<!-- wiki: {{=}} --></span> <span class="nlw_phrase">&lt;=<!-- wiki: {{&lt;=}} --></span> <span class="nlw_phrase">=<!-- wiki: {{=}} --></span> are <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S03.html#Feed_operators">feed operators<!-- wiki-renamed-hyperlink "feed operators"<http://perlcabal.org/syn/S03.html#Feed_operators> --></a></p>
<h1 id="when_used_inside_regexes">When used inside regexes</h1>
<p>
= is used to <a target="_blank" title="(external link)" href="http://perlcabal.org/syn/S05.html#Variable_(non-)interpolation">declare aliases<!-- wiki-renamed-hyperlink "declare aliases"<http://perlcabal.org/syn/S05.html#Variable_(non=-)interpolation> --></a> and behaves a bit more like := in this usage.</p>
<h1 id="special_variables">Special Variables</h1>
<h1 id="as_an_adverb">As an adverb</h1>
<h1 id="other_uses">Other Uses</h1>
<h1 id="hyper_operator_and_meta_operator_restrictions">Hyper operator and meta operator restrictions</h1>
<h1 id="old_deprecated_or_other_language_uses">Old, deprecated, or other language uses</h1>
<p>
=~ in Perl5 used to be for matching. That is ~~ in Perl6. =~ is always a syntax error in Perl6.<br />
= as a prefix operator used to be used to do what is now Iterator.get (and IO.get, IO.lines)<br />
=$*IN as prefix to filehandle is a case of the above which was common in early Perl6 documentation</p>
</div>
]]></description>
<author>Brian Julin</author>
<guid isPermaLink="true">http://www.perlfoundation.org/perl6/index.cgi?witch_equal</guid>
<pubDate>Mon, 20 Apr 2009 15:24:05 -0000</pubDate>
</item>

</channel>
</rss>