Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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', );

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 perusing the Monastery: (14)
As of 2016-06-28 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (361 votes). Check out past polls.