diff options
author | damien <damien@mandriva.com> | 2001-03-06 00:15:45 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-03-06 00:15:45 +0000 |
commit | df126022d1d0bdabedeb677ec31f3fa70aa5525e (patch) | |
tree | 1c09c53fbf040a10efe2bb77419051ca85975892 | |
parent | fb2ad33549fbe34a59dd085422cb540656e30ab7 (diff) | |
download | drakx-df126022d1d0bdabedeb677ec31f3fa70aa5525e.tar drakx-df126022d1d0bdabedeb677ec31f3fa70aa5525e.tar.gz drakx-df126022d1d0bdabedeb677ec31f3fa70aa5525e.tar.bz2 drakx-df126022d1d0bdabedeb677ec31f3fa70aa5525e.tar.xz drakx-df126022d1d0bdabedeb677ec31f3fa70aa5525e.zip |
setinhash -> set_in_hash
-rw-r--r-- | perl-install/common.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index 84618b8a4..8f8f49944 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -77,7 +77,7 @@ sub to_float { $_[0] =~ /(\d*(\.\d*)?)/; $1 } sub ikeys { my %l = @_; sort { $a <=> $b } keys %l } sub add2hash($$) { my ($a, $b) = @_; while (my ($k, $v) = each %{$b || {}}) { $a->{$k} ||= $v } $a } sub add2hash_($$) { my ($a, $b) = @_; while (my ($k, $v) = each %{$b || {}}) { exists $a->{$k} or $a->{$k} = $v } $a } -sub setinhash($$) { my ($a, $b) = @_; while (my ($k, $v) = each %{$b || {}}) { $a->{$k} = $v } $a } +sub set_in_hash($$) { my ($a, $b) = @_; while (my ($k, $v) = each %{$b || {}}) { $a->{$k} = $v } $a } sub member { my $e = shift; foreach (@_) { $e eq $_ and return 1 } 0 } sub dirname { @_ == 1 or die "usage: dirname <name>\n"; local $_ = shift; s|[^/]*/*\s*$||; s|(.)/*$|$1|; $_ || '.' } sub basename { @_ == 1 or die "usage: basename <name>\n"; local $_ = shift; s|/*\s*$||; s|.*/||; $_ } |