diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 10:23:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 10:23:21 +0000 |
commit | 7e5672eb837597a08dc886dc022f704be9b97665 (patch) | |
tree | 51aba798e9eb6501aa32cc1cfdbf4d759a031b3b /perl-install/commands.pm | |
parent | 5d8a5663900537c6695f08692920d666f5ec9213 (diff) | |
download | drakx-7e5672eb837597a08dc886dc022f704be9b97665.tar drakx-7e5672eb837597a08dc886dc022f704be9b97665.tar.gz drakx-7e5672eb837597a08dc886dc022f704be9b97665.tar.bz2 drakx-7e5672eb837597a08dc886dc022f704be9b97665.tar.xz drakx-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.pm | 4 |
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); |