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.