in reply to Scalar followed by parenthetical...
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scalar followed by parenthetical...
by Anonymous Monk on May 19, 2013 at 04:36 UTC | |
by BillKSmith (Monsignor) on May 19, 2013 at 22:51 UTC |