Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-10-06 16:50 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (155 votes), past polls