summaryrefslogtreecommitdiffstats
path: root/perl-install/network/tools.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-03 14:25:23 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-03 14:25:23 +0000
commit79b072964b5f9583d0f0af8e774d0c0ec6cd12c5 (patch)
tree2e2cf271562f3f6966ce1004f55027e3e44fbdb8 /perl-install/network/tools.pm
parent418dd24f2d0d4112cb40640aca7c2d3703720a9e (diff)
downloaddrakx-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.pm3
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 {