in reply to Where in a package should 'use' be called?
As you say, where you use a module matters not in Perl 5 and I have done it both ways over past years. But this year, since I am now cognizant of Perl 6's module scoping rules, I put the module use statement in a subroutine unless it is to be used in more than one scope.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Where in a package should 'use' be called?
by stevieb (Canon) on Sep 28, 2015 at 00:42 UTC |