Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Referencing the locals

by hrcerq (Monk)
on Apr 28, 2021 at 18:50 UTC ( [id://11131809]=note: print w/replies, xml ) Need Help??


in reply to Referencing the locals

Hi. You'll get a better understanding of this by taking a look on Variables and Scoping tutorials, and I definitely recommend this article too.

P.S.: Later on, I noticed scoping rules are not the key point here. Yet the reading I mentioned helps.

return on_success() or die;

Replies are listed 'Best First'.
Re^2: Referencing the locals
by haukex (Archbishop) on Apr 28, 2021 at 19:21 UTC
    You'll get a better understanding of this by taking a look on Variables and Scoping tutorials, and I definitely recommend this article too.

    Note that this isn't an issue of scoping, and none of those links discuss symbolic references.

    $ perl -le '$x=2; my $x=4; print ${x}, ${"x"}' 42

      My bad. It's just that I saw the term local variables associated to lexical variables, and ended up focusing on that. I'm sorry.

      return on_success() or die;

        No worries, and thanks for editing your node! In the context of the question, the difference between lexical and package variables is relevant, which those tutorials do cover.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2026-05-10 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.