Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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.


Comment on Re^3: Data::Table - empty values - avoid warnings
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-08-30 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls