Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: how to declare a local *subname=sub{}?

by perl-diddler (Chaplain)
on Oct 30, 2016 at 23:31 UTC ( [id://1174978]=note: print w/replies, xml ) Need Help??


in reply to Re^3: how to declare a local *subname=sub{}?
in thread how to declare a local *subname=sub{}?

Ok, got that... but why doesn't the 'lvalue' "asub" need to be declared under strict?
  • Comment on Re^4: how to declare a local *subname=sub{}?

Replies are listed 'Best First'.
Re^5: how to declare a local *subname=sub{}?
by LanX (Saint) on Oct 30, 2016 at 23:41 UTC
    You are accessing a global symbol of the stash

    you don't need to declare hash elements of an existing hash either, do you?

    update

    You seem to think that local is declaring variables.

    That's totally wrong! Please read documentation and provided links.

    meta:

    This whole discussion is too XY for my taste, I'm out now. :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found