summaryrefslogtreecommitdiffstats
path: root/MDK/Common/Func.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-31 12:01:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-31 12:01:32 +0000
commitab2b02f3349dbf1960f2af5b43295d1ffa6be040 (patch)
treee0e74cf29e340614b23f5a039ea9f522ed49a70f /MDK/Common/Func.pm
parente14829cc6aa3bcb315e330b1bcb5f82676fb26d3 (diff)
downloadperl-MDK-Common-ab2b02f3349dbf1960f2af5b43295d1ffa6be040.tar
perl-MDK-Common-ab2b02f3349dbf1960f2af5b43295d1ffa6be040.tar.gz
perl-MDK-Common-ab2b02f3349dbf1960f2af5b43295d1ffa6be040.tar.bz2
perl-MDK-Common-ab2b02f3349dbf1960f2af5b43295d1ffa6be040.tar.xz
perl-MDK-Common-ab2b02f3349dbf1960f2af5b43295d1ffa6be040.zip
- perl_checker: cleaner, more usable (via .perl_checker for -exclude's)
- perl_checker: more stricter syntax rules - adapt *.pm's to those rules
Diffstat (limited to 'MDK/Common/Func.pm')
-rw-r--r--MDK/Common/Func.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MDK/Common/Func.pm b/MDK/Common/Func.pm
index 8cca560..6578010 100644
--- a/MDK/Common/Func.pm
+++ b/MDK/Common/Func.pm
@@ -1,3 +1,5 @@
+package MDK::Common::Func;
+
=head1 NAME
MDK::Common::Func - miscellaneous functions
@@ -142,8 +144,6 @@ L<MDK::Common>
=cut
-package MDK::Common::Func;
-
use MDK::Common::Math;
@@ -180,7 +180,7 @@ sub fold_left(&@) {
sub smapn {
my $f = shift;
my $n = shift;
- my @r = ();
+ my @r;
for (my $i = 0; $i < $n; $i++) { push @r, &$f(map { $_->[$i] } @_) }
@r
}