From: Vincent Pit Date: Sun, 26 Aug 2018 19:08:19 +0000 (+0200) Subject: Always apply localizations at the glob level X-Git-Tag: rt125931^0 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=d0000ba43a773bbbdfd7cbf8b4414a99cedb6391;hp=d0000ba43a773bbbdfd7cbf8b4414a99cedb6391;p=perl%2Fmodules%2FScope-Upper.git Always apply localizations at the glob level "localize '$x', $var" used to dereference $var and apply the localization to $x directly. This did not set the IMPORTED flag on *x when necessary. In order to fix this, we now follow the opposite logic : $var is now referenced when the localization target is a scalar, and that reference is assigned to *x so that localize now really behaves like "local *x = $var". This fixes [RT #125931]. ---