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


in reply to Re: shift implicit dereference
in thread shift implicit dereference

Another place a unary plus is often useful is to protect against the effects of the fat comma:

use constant MONIKER => 'name'; my %hash1 = ( +MONIKER => 'Monica' ); # compared with... my %hash2 = ( MONIKER => 'Monica' ); use Data::Dumper; print Dumper(\%hash1, \%hash2);
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name