go ahead... be a heretic | |
PerlMonks |
Re: Scalar followed by parenthetical...by LanX (Saint) |
on May 19, 2013 at 03:34 UTC ( [id://1034187]=note: print w/replies, xml ) | Need Help?? |
ehm ... something completely different! If you meant to write: $_->{B} ||= $_->{A} foreach @h; you should be warned about another bug! I doubt that you really want $_->{B} to be overwritten if it's 0 or "". Always use defined-or // to check for undef!
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|