Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE(2) (jjhorner) replacing values via web

by nuance (Hermit)
on Jul 18, 2000 at 16:59 UTC ( #22980=note: print w/replies, xml ) Need Help??


in reply to RE: (jjhorner)replacing values via web
in thread replacing values via web

Yes it will since the array element is an lvalue.

From perlsyn:

If any element of LIST is an lvalue, you can modify it by modifying VAR inside the loop. That's because the foreach loop index variable is an implicit alias for each item in the list that you're looping over.

Nuance

  • Comment on RE(2) (jjhorner) replacing values via web

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-05-28 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?