http://qs321.pair.com?node_id=11109823


in reply to RFC: "assignary" operator ?= :

I like it. Very much. Looks to me like a very concise and logical addition to operators modifying the LHS, like *= /= ||= and such. And it is readable, fluently!

$var ?= "something" : "something else";

"If $var is set, assign to it 'something', else 'something else'"

"Elegant as f*ck", as a cow-orker coined a python expression.

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.

Thanks!

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'