diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-05-27 05:24:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-05-27 05:24:57 +0000 |
commit | 6628b3608b7c30da683c03d1c18d94706f991db5 (patch) | |
tree | dd264f20c26c7a3352eb11128b06fb368dbc1f9c /MDK/Common/Math.pm | |
parent | 43750f2338ccfc28518234374c9a0e2af424eb61 (diff) | |
download | perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.gz perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.bz2 perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.xz perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.zip |
use "our" instead of "use vars"
Diffstat (limited to 'MDK/Common/Math.pm')
-rw-r--r-- | MDK/Common/Math.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MDK/Common/Math.pm b/MDK/Common/Math.pm index c1ce753..5ed9a61 100644 --- a/MDK/Common/Math.pm +++ b/MDK/Common/Math.pm @@ -112,14 +112,14 @@ L<MDK::Common> =cut -use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $PRECISION $PI); -@ISA = qw(Exporter); -@EXPORT_OK = qw($PI even odd sqr sign round round_up round_down divide min max or_ and_ sum product factorial); -%EXPORT_TAGS = (all => [ @EXPORT_OK ]); +use Exporter; +our @ISA = qw(Exporter); +our @EXPORT_OK = qw($PI even odd sqr sign round round_up round_down divide min max or_ and_ sum product factorial); +our %EXPORT_TAGS = (all => [ @EXPORT_OK ]); -$PRECISION = 10; -$PI = 3.1415926535897932384626433832795028841972; +our $PRECISION = 10; +our $PI = 3.1415926535897932384626433832795028841972; sub even { $_[0] % 2 == 0 } sub odd { $_[0] % 2 == 1 } |