in reply to A regex BR variable dead in following line/command

See Coping with Scoping.


🦛

  • Comment on Re: A regex BR variable dead in following line/command

Replies are listed 'Best First'.
Re^2: A regex BR variable dead in following line/command
by haukex (Archbishop) on Nov 12, 2021 at 15:00 UTC
    See Coping with Scoping.

    Although that explains local, it unfortunately doesn't explain what's going on in the OP's example (that $1 and friends are dynamically scoped).

      Indeed so. It was meant more as a suggested answer to abdan's second question rather than their first.


      🦛