Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Hash Values into Array

by sundialsvc4 (Abbot)
on Aug 16, 2013 at 21:31 UTC ( #1049798=note: print w/ replies, xml ) Need Help??


in reply to Hash Values into Array

perhaps adding an if clause to the above:

... push @errors, $info->{$os}->{$testcase}->{error} if defined($info->{$os}->{$testcase}->{error});

This would avoid pushing undef values onto that array.   Also consider if exists() instead.


Comment on Re: Hash Values into Array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-05-07 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (158 votes), past polls