Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Surpised by foreach iterator limitation

by shotgunefx (Parson)
on Apr 08, 2003 at 04:26 UTC ( #248810=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://248810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2020-02-23 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (102 votes). Check out past polls.

    Notices?