diff options
author | 2008-04-07 12:15:59 +0000 | |
---|---|---|
committer | 2008-04-07 12:15:59 +0000 | |
commit | 0dcd5f0cc1aac927b82cdb1ae6dacc2a274a738c (patch) | |
tree | 78f7b7c694059bef10b10e0fabfa134196d7c075 | |
parent | pretty print the BARs (diff) | |
download | wireguard-openbsd-0dcd5f0cc1aac927b82cdb1ae6dacc2a274a738c.tar.xz wireguard-openbsd-0dcd5f0cc1aac927b82cdb1ae6dacc2a274a738c.zip |
tweak a bit, allow ^ to occur at beginning of variable name
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Subst.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Subst.pm b/usr.sbin/pkg_add/OpenBSD/Subst.pm index 665defa5bee..3c91c1ee3c9 100644 --- a/usr.sbin/pkg_add/OpenBSD/Subst.pm +++ b/usr.sbin/pkg_add/OpenBSD/Subst.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Subst.pm,v 1.3 2008/04/07 12:02:59 espie Exp $ +# $OpenBSD: Subst.pm,v 1.4 2008/04/07 12:15:59 espie Exp $ # # Copyright (c) 2008 Marc Espie <espie@openbsd.org> # @@ -35,6 +35,7 @@ sub hash sub add { my ($self, $k, $v) = @_; + $k =~ s/^\^//; $self->{$k} = $v; } |