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 |