It's really not an improvement, but rather a comment, since if aliases and
iterations for numerous arrays were implemented, they would of course have
to somehow behave with hashes, so this would be a bahavior that could be
implemented.

Ilya

-----Original Message-----
From: Mark J. Reed
To: '[EMAIL PROTECTED] '
Sent: 07/20/2001 11:21 AM
Subject: Re: array/hash manipulation [was :what's with 'with'?]

On Fri, Jul 20, 2001 at 11:17:13AM -0600, Sterin, Ilya wrote:
> But this will be flattened, so I would think
> 
> for my($key, $val)(%my_hash)
> { ... }
> 
> Would be a great convenience.  $key and $val being aliased
accordingly.
I'm sorry, but I fail to see how this is a big improvement over the
current version:

    while (my ($key, $val) = each %my_hash)
    { ... }

-- 
Mark J. REED    <[EMAIL PROTECTED]>

Reply via email to