summaryrefslogtreecommitdiffstats
path: root/perl-install/commands.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-07-24 10:23:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-07-24 10:23:21 +0000
commit7e5672eb837597a08dc886dc022f704be9b97665 (patch)
tree51aba798e9eb6501aa32cc1cfdbf4d759a031b3b /perl-install/commands.pm
parent5d8a5663900537c6695f08692920d666f5ec9213 (diff)
downloaddrakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar
drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.gz
drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.bz2
drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.xz
drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.zip
generalize the use of chomp_ as the functional alternative to chomp (and works on lists)
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r--perl-install/commands.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm
index 291161943..b34b7df33 100644
--- a/perl-install/commands.pm
+++ b/perl-install/commands.pm
@@ -398,10 +398,10 @@ sub unpack_ {
local *F;
open F, $_[0] or die "can't open file $_: $!\n";
while (1) {
- my ($size) = chop_(scalar <F>);
+ my $size = chomp_(scalar <F>);
defined $size or last;
$size =~ /^\d+$/ or die "bad format (can't find file size)\n";
- my ($filename) = chop_(scalar <F>) or die "expecting filename\n";
+ my $filename = chomp_(scalar <F>) or die "expecting filename\n";
print "$filename\n";
my $dir = dirname($filename);