in reply to Re: The Anomalous each()
in thread The Anomalous each()
# this code creates an endless loop my %hash = ( foo=>"x", Foo=>"y", Bar=>"a", bar=>"c" ); while(my($key,$value)=each %hash){ # dumb example for my $key2 (keys %hash){ if(lc($key) eq lc($key2)){ print "key $key is similiar to $key2\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The Anomalous each()
by diotalevi (Canon) on Nov 18, 2005 at 20:15 UTC | |
by jdhedden (Deacon) on Nov 18, 2005 at 20:39 UTC | |
by Fairy Nuff (Novice) on Nov 18, 2005 at 20:43 UTC |