Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 avoiding work at the Monastery: (10)
As of 2015-07-29 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls