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

Re: Hash slices ?

by kilinrax (Deacon)
on Dec 01, 2000 at 17:30 UTC ( [id://44337]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @keys = qw(one two five);
    unshift @keys,'four';
    ...
    } else {
        print "nope\n";
    }
    
  2. or download this
    four one two five
    yep
    one two five two
    nope
    
  3. or download this
    if ( grep{ exists( $hash{$_} ) } @keys ) { 
        print "yep\n";
    } else {
        print "nope\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found