diff options
author | Francois Pons <fpons@mandriva.com> | 2003-03-03 14:25:23 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-03-03 14:25:23 +0000 |
commit | 79b072964b5f9583d0f0af8e774d0c0ec6cd12c5 (patch) | |
tree | 2e2cf271562f3f6966ce1004f55027e3e44fbdb8 /perl-install/network/tools.pm | |
parent | 418dd24f2d0d4112cb40640aca7c2d3703720a9e (diff) | |
download | drakx-79b072964b5f9583d0f0af8e774d0c0ec6cd12c5.tar drakx-79b072964b5f9583d0f0af8e774d0c0ec6cd12c5.tar.gz drakx-79b072964b5f9583d0f0af8e774d0c0ec6cd12c5.tar.bz2 drakx-79b072964b5f9583d0f0af8e774d0c0ec6cd12c5.tar.xz drakx-79b072964b5f9583d0f0af8e774d0c0ec6cd12c5.zip |
simplified unquotify.
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r-- | perl-install/network/tools.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index 1d96fc839..b0d9d1a9b 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -36,8 +36,7 @@ sub write_secret_backend { sub unquotify { my ($word) = @_; - my ($a, $b, $c) = $$word =~ /"(.*)"|'(.*)'|(.*)/; - $$word = $a || $b || $c; + $$word =~ s/^(['"]?)(.*)\1$/$2/; } sub read_secret_backend { |