in reply to How to get a reference from an eval() string?
eval "$base\{$lastPart} = \$newData"
But you can return a reference to the value to be able to change it:
my $ref = eval "\\$base\{$lastPart}" || eval "$base = {}"; $$ref = $newData;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get a reference from an eval() string?
by exilepanda (Friar) on Sep 06, 2016 at 10:15 UTC | |
by mr_mischief (Monsignor) on Sep 06, 2016 at 15:03 UTC | |
by exilepanda (Friar) on Sep 06, 2016 at 15:58 UTC |