Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Hash slices ?

by kilinrax (Deacon)
on Dec 01, 2000 at 17:30 UTC ( #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
Node Status?
node history
Node Type: note [id://44337]
help
Chatterbox?
[Lady_Aleena]: Well, HoH and AoH respectively.
[Lady_Aleena]: But if you want to play, play. I don't mind. 8)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2017-05-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?