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 16: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