Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-11-28 17:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls