Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Testing array of hash values

by dws (Chancellor)
on Dec 11, 2001 at 07:26 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found