Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by hippo (Bishop)
on Nov 12, 2021 at 12:25 UTC ( #11138756=note: print w/replies, xml ) Need Help??


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 (Bishop) 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.


      🦛

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-05-28 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?