in reply to Re^2: Data::Table - empty values - avoid warnings
in thread Data::Table - empty values - avoid warnings

Am I correct if I assume that here $_ is defined as 'one single digit or maybe a few digits ...

No, $_ is array reference not a scalar. $_ is not being tested for simple number-ness, but the deferenced value, $_->[0], is. Other than that, you are correct in your reading about which value is eventually going to be added.

- parv

Replies are listed 'Best First'.
Re^4: Data::Table - empty values - avoid warnings
by Anonymous Monk on Oct 25, 2007 at 05:39 UTC

    Oh, but a array reference is a scalar, if only a special type of it.

    No, $_ is array reference not a scalar.

    That was rather thoughtless of me. First sentence should have been: "No, $_ is array reference (not a simple value)."

    -parv