Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 chanting in the Monastery: (4)
As of 2014-10-26 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls