On Wed, Jul 13, 2005 at 11:53:33AM -0700 John W. Krahn wrote:
......
...... 
> You have two keys in the hash and you are calling each() twice which does 
> not
> reset the iterator.  You need to reset the iterator by either calling each()
> until it returns nothing (undef) or by calling keys() or values().  So 
> instead
> of:
> 
> my @ou = %where;
> 
> you should do:
> 
> keys %where;

Thanks for your replies. I missed a chance to read "perldoc -f each" 
before asking my question. Sorry for inconveniences caused.
  
-- 
Gérard 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to