Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Testing array of hash values

by dws (Chancellor)
on Dec 11, 2001 at 07:26 UTC ( #130851=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      @p{'eyes', 'hair', 'etc'} =();
  2. or download this
      my %p;
      $p{$_} = undef for qw(eyes hair etc);
    
  3. or download this
      @p{ 'eyes', 'hair', 'etc' }
  4. or download this
      sub do_head {
           my($heading, @data) = @_;
    
          return "<h4>$heading</h4>" if grep { defined($_) } @data;
          return "";
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-05-16 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?