note
2teez
<p>
<ol>
<li>
Please check [doc://perlop] under the subheading <h5>Smartmatch Operator</h5>
<blockquote><i>..It is also unique in that all other Perl operators impose a context (usually string or numeric context) on their operands, autoconverting those operands to those imposed contexts. In contrast, smartmatch infers contexts from the actual types of its operands and uses that type information to select a suitable comparison mechanism...</i></blockquote>
</li>
<li>
Moreover, using this<c>
print( "x" ~~ ("x", "y", "z") );
</c>
with use [doc://warnings] in your script turn on, it would <tt>shout</tt><i><b>"Useless use of a constant (x),(y) in void context"</b>. Which shows you are inferring a void context using smartmatch like so.</i>
</li>
</ol>
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-918402">
If you tell me, I'll forget.<br>
If you show me, I'll remember.<br>
if you involve me, I'll understand.<br>
--- Author [unknown to me]
</div></div>
1000809
1000809