having to juggle with complex manipulations like yours
What complex manipulations? In essence, what I originally suggested as an alternative was
${ $::{$ns}{foo} } = ...
in place of
{ no strict 'refs'; ${ "${ns}::foo" } = ... }
I fail to see how that is any more complex.  Neither did I say anything about it being "better" in general.
In reply to Re^5: Stashing a Package Variable by Reference
by almut
in thread Stashing a Package Variable by Reference
by Xiong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |