Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: local our $var; What does it do? (quiets strict)

by Anonymous Monk
on Jun 18, 2015 at 09:16 UTC ( [id://1130951]=note: print w/replies, xml ) Need Help??


in reply to local our $var; What does it do?

It quiets strict so you can use short names instead of fully qualified names

$ perl -Mstrict -we " local $fudge = 12; " Global symbol "$fudge" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. $ perl -Mstrict -we " local our $fudge = 12; "

See local our?

I've also seen it here https://perl.apache.org/docs/1.0/guide/porting.html

Turning regular "cgi" into registry is most often where I've seen "local our" because folks don't want to grok my lexicals

Replies are listed 'Best First'.
Re^2: local our $var; What does it do? (quiets strict)
by kcott (Archbishop) on Jun 18, 2015 at 10:14 UTC

    Thanks for the explanation and links.

    Clearly nothing new at all: I'm somewhat surprised I haven't encountered it before.

    -- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found