Welcome to the Monastery | |
PerlMonks |
Re^3: no strict refs for blocks?by bart (Canon) |
on Nov 02, 2011 at 11:48 UTC ( [id://935362]=note: print w/replies, xml ) | Need Help?? |
but the additional "use strict refs" is a NOOP.Actually, it would reenable strict for any code below in the remainder of the block. Here it is indeed not doing anything. Probably the person who wrote this snippet copy/pasted it from somewhere else without knowing why the "use strict" was there (typically known in the Perl world as "cargo culting"); or else, there might have been some code below it, which got deleted, and this just stuck.
In Section
Seekers of Perl Wisdom
|
|