Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Sensible ordering of 'use' (if any)

by Anonymous Monk
on Nov 01, 2011 at 11:31 UTC ( #935097=note: print w/ replies, xml ) Need Help??


in reply to Sensible ordering of 'use' (if any)

I put both strict & warnings pragmas listed first on a single line. Rest are alphabetically sorted.

That will be followed by other pragmas in a group, which will be followed by group of modules. If the list is "large enough" and/or list has highly unrelated modules, modules will be divided into subgroups by function.

Above could be then ...

use strict; use warnings; use utf8; use namespace::autoclean; use AnyEvent; use AnyEvent::Twitter::Stream; use Coro; use LWP::Protocol::AnyEvent::http; use Net::Twitter; use Data::Visitor::Callback; use DateTime::Format::Strptime; use YAML::Any; use Log::Log4perl qw(:easy);


Comment on Re: Sensible ordering of 'use' (if any)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935097]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-06 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls