in reply to Re^4: Print multiple hashes of arrays at same time
in thread Print multiple hashes of arrays at same time

C style Logical Defined Or

is exactly equivalent to defined($a) ? $a : $b

As well, assuming all values are guaranteed to be non-zero numbers, you can swap that to a ||.