diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-20 19:52:51 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-20 19:52:51 +0000 |
commit | 4d33f5cfbe125839f9c3f1ba6a93ccbb4ca21497 (patch) | |
tree | f2bc977677316591ed3b0f1fe9a534a15500fae7 /LedgerSMB | |
parent | 0985ef49e6f5a86a0eedfb65ac7b2a5d45ccc0e6 (diff) |
Moved 'use' statements to top of Form.pm
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@960 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/Form.pm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index c5828f12..868e310a 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -35,6 +35,9 @@ use Math::BigFloat lib=>'GMP'; use LedgerSMB::Sysconfig; +use List::Util qw(first); +use LedgerSMB::Mailer; +use Time::Local; package Form; @@ -45,8 +48,6 @@ sub new { my $argstr = shift; - use List::Util qw(first); - read(STDIN, $_, $ENV{CONTENT_LENGTH}); if ($argstr){ @@ -327,7 +328,6 @@ sub header { sub redirect { my ($self, $msg) = @_; - use List::Util qw(first); if ($self->{callback} || !$msg){ @@ -902,7 +902,6 @@ sub parse_template { if ($self->{media} eq 'email') { - use LedgerSMB::Mailer; my $mail = new Mailer; @@ -1261,7 +1260,6 @@ sub add_date { my ($self, $myconfig, $date, $repeat, $unit) = @_; - use Time::Local; my $diff = 0; my $spc = $myconfig->{dateformat}; @@ -2982,8 +2980,6 @@ sub from_to { my ($self, $yy, $mm, $interval) = @_; - use Time::Local; - my @t; my $dd = 1; my $fromdate = "$yy${mm}01"; |