Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Data::Table - empty values - avoid warnings

by GertMT (Friar)
on Oct 24, 2007 at 19:26 UTC ( #646978=note: print w/replies, xml ) Need Help??

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

Thanks, often it directs me to the solution as well but couldn't think of a 'generic' enough fix. I tried something like:

$t->colsMap(sub { $_->[2] = $_->[0] + $_->[1] if ( length( $_->[1] ) > 0 ) } );

but that only worked in case of blanks. Happy to have found some alternatives.
thanks again.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://646978]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2016-10-21 21:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (290 votes). Check out past polls.