Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Re: Hash slices ?

by ChOas (Curate)
on Dec 01, 2000 at 18:09 UTC ( #44349=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Hash slices ?
in thread Hash slices ?

I was thinking about doing it like this to avoid the grep:

sub Match{foreach (@keys) {return 1 if exists $hash{$_};}return 0} if ( Match ) { print "yep\n"; } else { print "nope\n"; };
But I was thinking about that already before I thought of
the slice ;))


Comment on Re: Re: Re: Re: Hash slices ?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-29 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls