Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Not sure how to handle this scope

by The Perlman (Scribe)
on Aug 19, 2021 at 21:43 UTC ( [id://11135971]=note: print w/replies, xml ) Need Help??


in reply to Re: Not sure how to handle this scope
in thread Not sure how to handle this scope

"Braces always create a new scope"

Unless they create a $hash ={a=>1} or are used for enclosing ${identifiers} or are used to dereference a $hash->{a} ... or...?

- Ron
  • Comment on Re^2: Not sure how to handle this scope

Replies are listed 'Best First'.
Re^3: Not sure how to handle this scope
by Anonymous Monk on Aug 21, 2021 at 13:37 UTC

    Quite right. In trying to address the OP's statement that ... it wont create a new scope of $self in the braces ... I overstated the case. Thank you for the correction.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found