http://www.perlmonks.org?node_id=635158


in reply to what would you like to see in perl5.12?

  1. lock as an lvalue sub that only locked for the duration of the current statement (not block) when used as an lvalue.

    Hence

    ... lock( $var )++; ..
    would be a safe and concise substitute for
    ... { lock( $var ); $var++; } ...
  2. Also share( @array ) = ( some list ); would be nice.
  3. And a share() that didn't wipe the var being shared, but rather operated recursively on its contents.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.