add WebGUI::BestPractices

This commit is contained in:
Graham Knop 2010-09-01 15:11:08 -05:00
parent ed3ac1cd87
commit c59fc0f361
2 changed files with 44 additions and 0 deletions

View file

@ -3,6 +3,7 @@ package WebGUI::Account;
use strict;
use Moose;
use WebGUI::BestPractices;
has session => (
is => 'ro',

View file

@ -0,0 +1,43 @@
package WebGUI::BestPractices;
=head1 LEGAL
-------------------------------------------------------------------
WebGUI is Copyright 2001-2009 Plain Black Corporation.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
http://www.plainblack.com info@plainblack.com
-------------------------------------------------------------------
=head1 NAME
WebGUI::BestPractices - Enable WebGUI best practice pragmas
=head1 SYNOPSIS
use WebGUI::BestPractices;
=head1 DESCRIPTION
This module is the equivalent of adding the following to your module:
use strict;
use warnings;
no warnings 'uninitialized';
use feature;
use namespace::autoclean;
=cut
sub import {
strict->import;
warnings->import;
warnings->unimport('uninitialized');
feature->import(':5.10');
namespace::autoclean->import;
}
1;