diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-25 22:00:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-25 22:00:16 +0000 |
commit | e38950a33c3505db7e79547622aa5946cfe88d5c (patch) | |
tree | ecb94365673b2f74e264d0cae8467a4481aea21f /perl-install/common.pm | |
parent | 5692f13be4ba57a7f52b54a7576bd858f418dc14 (diff) | |
download | drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.gz drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.bz2 drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.xz drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.zip |
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index 47cc2586f..bac1d5129 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -586,6 +586,11 @@ sub removeXiBSuffix($) { $_; } +sub truncate_list { + my $nb = shift; + @_ <= $nb ? @_ : (@_[0..$nb-1], '...'); +} + sub formatTime { my ($s, $m, $h) = gmtime($_[0]); if ($h) { |