diff options
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) { |