Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-09-22 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (177 votes), past polls