Re: how to test if an element belongs to an array or hash



wrote:

> If I don't use iteration, how to test if an element belongs to an array
> or hash?

for a normal array: -> iteration
for hash, exists

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

.



Relevant Pages

  • Re: how to test if an element belongs to an array or hash
    ... >> If I don't use iteration, how to test if an element belongs to an array ... > for hash, exists ... How about this way, without iteration? ...
    (comp.lang.perl.misc)
  • Re: how to test if an element belongs to an array or hash
    ... > John Bokma wrote: ... >>> If I don't use iteration, how to test if an element belongs to an ... >> for hash, exists ... without iteration? ...
    (comp.lang.perl.misc)
  • Re: ssh - password control or key control?
    ... registering shared-secret/password with a host (easily vulnerable to ... and you repeatedly hash it the number of iteration. ... http://www.garlic.com/~lynn/2003m.html#50 public key vs passwd authentication ...
    (comp.os.linux.security)
  • Re: counting the number of repititions in an array
    ... corresponding to the array element is increased by one. ... If the hash is empty to begin with, when you try to look up the key ... next iteration ...
    (comp.lang.ruby)
  • Re: Need Graph Isomorphism Algorithm De-bunked
    ... I replace the cryptographic hash with ordering and concatenation ... all outputs during this "hash iteration", ... assign a bit string which is its value represented as a bit string of length ceil) followed by the bit strings of that length representing its neighbors' values in sorted order. ... Repeat steps 1 through 5 once with each node as the special node. ...
    (sci.crypt)