As for putting it inside of a sub to indicate it is only used by that sub -- that could be confusing to less experienced Perl programmers and might cause it to get missed if someone is eyeballing the script for dependancies. It would be better to put it at the top and add a comment explaining where it is used.
In reply to Re: Code style advice: where to put "use" statements?
by Argel
in thread Code style advice: where to put "use" statements?
by eyepopslikeamosquito
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |