Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by haukex (Archbishop)
on Nov 12, 2021 at 15:00 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-29 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found