in reply to Re: Surpised by foreach iterator limitation
in thread Surpised by foreach iterator limitation

I certainly wasn't suggesting that $hash{key} be a valid scalar name. I simply and mistakenly thought that any lvalue would work in the iterator position.

-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: Re: Surpised by foreach iterator limitation

Replies are listed 'Best First'.
Re: Re: Re: Surpised by foreach iterator limitation
by pg (Canon) on Apr 08, 2003 at 04:53 UTC
    Seriously, what you suggested here makes sense to me, but I think it is just the syntax, and the parser requires a valid variable name here, (or if it is missing, $_ is assumed).