Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chilling in the Monastery: (5)
As of 2015-07-28 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls