in reply to Re: Data::Table - empty values - avoid warnings
in thread Data::Table - empty values - avoid warnings
thanks for your reply. I'm a bit puzzled with the regex.
Am I correct if I assume that here $_ is defined as 'one single digit or maybe a few digits (d+, no spaces and stuff like that in between the digits) and then if this is not the case it should be a 0 (zero)? Never used this ternary operator and just want to make sure that's what it is.
thanks
((defined($_->[0]) && $_->[0] =~ m/^\d+$/) ? $_->[0] : 0)
Am I correct if I assume that here $_ is defined as 'one single digit or maybe a few digits (d+, no spaces and stuff like that in between the digits) and then if this is not the case it should be a 0 (zero)? Never used this ternary operator and just want to make sure that's what it is.
thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Data::Table - empty values - avoid warnings
by Anonymous Monk on Oct 25, 2007 at 05:31 UTC | |
by Anonymous Monk on Oct 25, 2007 at 05:39 UTC |
In Section
Seekers of Perl Wisdom