in reply to Re: Why does assignment change the result?
in thread Why does assignment change the result?

I am not positive but I think by assigning to @_ wholesale he is replacing the aliases, not writing to them.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: Why does assignment change the result?

Replies are listed 'Best First'.
Re^3: Why does assignment change the result?
by demerphq (Chancellor) on May 23, 2007 at 21:22 UTC

    whoops. good catch. still anything that assigns to @_ is a code smell to me.

    ---
    $world=~s/war/peace/g

      <sarc>But then you can use shift and pop without passing any arguments... think of all the typing you will save!</sarc>

      :)

                      - Ant
                      - Some of my best work - (1 2 3)