note
shmem
<p>I like it. Very much. Looks to me like a very concise and logical addition to operators modifying the LHS, like <c>*= /= ||=</c> and such. And it is readable, fluently!
</p>
<code>
$var ?= "something" : "something else";
</code>
<p>"If $var is set, assign to it 'something', else 'something else'"</p>
<p>"Elegant as f*ck", as a cow-orker coined a python expression.</p>
<p>I'd really like to have that operator added. If I find the time (and brainz) to whip up a proposal with patches, I'll do. Hopefully.</p>
<p>Thanks!</p>
<div class="pmsig"><div class="pmsig-510280">
<small>perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'</small>
</div></div>
11109808
11109808