Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
The stupid question is the question not asked
 
PerlMonks  

RE: (jjhorner)replacing values via web

by le (Friar)
on Jul 18, 2000 at 12:21 UTC ( [id://22977]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Just a dumb question:

Will a substitution on $_ find its way into the array? (Will the array contents get changed when one changes $_?)

Replies are listed 'Best First'.
RE(2) (jjhorner) replacing values via web
by nuance (Hermit) on Jul 18, 2000 at 12:59 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://22977]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.