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
In reply to Re: local our $var; What does it do? (quiets strict)
by Anonymous Monk
in thread local our $var; What does it do?
by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |