Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Khen1950fx (Canon)
on Nov 01, 2011 at 10:14 UTC ( #935084=note: print w/ replies, xml ) Need Help??


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

Your ordering is good. As for me, I try to order in a stair-step fashion, left to right, strict first and warnings second, but that's just my habit.

#!/usr/bin/perl use strict; use warnings; use utf8; use Coro; use AnyEvent; use YAML::Any; use Net::Twitter; use namespace::autoclean; use Data::Visitor::Callback; use AnyEvent::Twitter::Stream; use DateTime::Format::Strptime; use LWP::Protocol::AnyEvent::http; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($DEBUG); use Moose; has 'twitter' => ( is => 'rw', required => 1, isa => 'Net::Twitter', ); has 'listener' => ( is => 'rw', required => 1, isa => 'AnyEvent::Twitter::Stream', ); has 'mongo' => ( is => 'rw', required => 0, isa => 'MongoDB::Database', );


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://935084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-28 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls