a ||= b is similar to a = a || b a = a || b , therefore:
$sheet->{MaxCol} ||= $sheet->{MinCol};
looks like:
$sheet->{MaxCol} = $sheet->{MaxCol} || $sheet->{MinCol};
Regarding ikegami, commentary differs in that a ||= b; evaluates only a once and evaluates a to b . It matters when a is magic or not a scalar.
source share