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 reply to Re: Scalar followed by parenthetical...
by LanX
in thread Scalar followed by parenthetical...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |