add WebGUI::BestPractices
This commit is contained in:
parent
ed3ac1cd87
commit
c59fc0f361
2 changed files with 44 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ package WebGUI::Account;
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use Moose;
|
use Moose;
|
||||||
|
use WebGUI::BestPractices;
|
||||||
|
|
||||||
has session => (
|
has session => (
|
||||||
is => 'ro',
|
is => 'ro',
|
||||||
|
|
|
||||||
43
lib/WebGUI/BestPractices.pm
Normal file
43
lib/WebGUI/BestPractices.pm
Normal 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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue