http://www.perlmonks.org?node_id=251521


in reply to Location of 'use' statements

Number three until it is unwieldy.

Unwieldy -- having more than one package in a file. Having so many uses that some alphabetization is necessary.

I'd put strict and warnings separate, and constant separate again.

Update: It's because pragmas go into scopes and modules into namespaces.

Replies are listed 'Best First'.
Re: Re: Location of 'use' statements
by PodMaster (Abbot) on Apr 18, 2003 at 21:51 UTC
    When it starts becoming unwieldy, you know it's time to break it up.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.