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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: shift implicit dereference
by kcott (Archbishop) on Oct 06, 2013 at 19:17 UTC | |
by LanX (Saint) on Oct 06, 2013 at 19:44 UTC | |
|
Re^3: shift implicit dereference
by Happy-the-monk (Canon) on Oct 06, 2013 at 19:00 UTC | |
by boftx (Deacon) on Oct 06, 2013 at 19:24 UTC |