Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049798]
help
Chatterbox?
[Tabish]: Hello to everyone :)
[Tabish]: can i use my own tow packages ( index.pm , db.pm) in one perl script ?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-12-11 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (288 votes). Check out past polls.

    Notices?