Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 taking refuge in the Monastery: (8)
As of 2014-08-22 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (156 votes), past polls