in reply to Re: 'use' inside or outside of package declaration?
in thread 'use' inside or outside of package declaration?
But Moose and 5.12 both enable warnings so we don't need to say it again... maybe that's not strictly true? Checking perldelta, it says 5.12 turns on strict. But I thought Moose and various "modern" boilerplates turn on warnings, and would do so fairly early.
It would be more awkward to have multiple packages defined in one file, if they used different modules and thus had different custom warnings available to them, since warnings pragma isn't scoped to the package. Normally I would not have multiple packages except for one-offs or an internal object that's very simple, but needs to be blessed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 'use' inside or outside of package declaration?
by JavaFan (Canon) on May 11, 2011 at 09:29 UTC | |
by FunkyMonk (Bishop) on May 11, 2011 at 13:50 UTC | |
|
Re^3: 'use' inside or outside of package declaration?
by tchrist (Pilgrim) on May 11, 2011 at 19:12 UTC |