summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-08 12:50:22 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-08 12:50:22 +0000
commit477f9e81cb3aa78829210942e8185e8146c6cd5e (patch)
tree9d8a4134a0c54dd54fbf623adff5d039f7a844c6 /perl-install/common.pm
parent38c803288507d86bfd04daf2f7a4b656f2c7de7b (diff)
downloaddrakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.gz
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.bz2
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.tar.xz
drakx-477f9e81cb3aa78829210942e8185e8146c6cd5e.zip
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 8cb221afb..de552b7c8 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -47,7 +47,7 @@ sub sign { $_[0] <=> 0 }
sub product { fold_left { $a * $b } @_ }
sub first { $_[0] }
sub second { $_[1] }
-sub top { $_[$#_] }
+sub top { $_[-1] }
sub uniq { my %l; @l{@_} = (); keys %l }
sub to_int { $_[0] =~ /(\d*)/; $1 }
sub to_float { $_[0] =~ /(\d*(\.\d*)?)/; $1 }