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

Re^3: local our

by davido (Cardinal)
on Jun 13, 2013 at 16:11 UTC ( [id://1038788]=note: print w/replies, xml ) Need Help??


in reply to Re^2: local our
in thread DIfference in days hours and second between dates

Yeah, I understand that it's old code. But "our" was introduced when, Perl 5.8 maybe? And "my" pretty much came with Perl 5. So where did the idiom come from? What book, what website, what teacher is promoting it? The idea came from somewhere, or a misinterpretation of an idea that came from somewhere. ;)

It would never have been considered a "best practice" for variables that need to be lexically scoped to a subroutine in any version of Perl since Perl 5.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2025-12-16 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (95 votes). Check out past polls.

    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.