in reply to Possible redundant use of "use strict" and "use warnings"?
The scope of those pragmas is lexical, meaning that if you turn them on once at the top of the file, they'll be enabled for the entire file (unless turned off with no), so they don't need to be present in each sub.
I've seen people do this with the rationale that the subs can be self-contained when copy/pasted into other code, which is of course not a preferable way to share code in the first place.
|
|---|