Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by haukex (Bishop)
on Nov 12, 2021 at 15:00 UTC ( #11138760=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^3: A regex BR variable dead in following line/command
by hippo (Bishop) on Nov 12, 2021 at 16:22 UTC

    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://11138760]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-01-22 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?