in reply to Code style advice: where to put "use" statements?
It does have the notional affect of stating that the module's use is limited, by convention rather than scoping, to the subroutine.
However, there is nothing to enforce that, so the usage could 'leak', which could be construed as misleading. And what would you (they) do if a module is subsequently needed in another subroutine in the same file?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Code style advice: where to put "use" statements?
by tirwhan (Abbot) on Feb 27, 2008 at 10:20 UTC | |
by BrowserUk (Patriarch) on Feb 27, 2008 at 10:49 UTC |
In Section
Seekers of Perl Wisdom