in reply to Re^2: Put references to array of hash elements in an array
in thread Put references to array of hash elements in an array
You need to store the references in the @AoH if you want it to reflect the changes:
#!/usr/bin/perl use warnings; use strict; my @AoH; my @age_ref = (42, 33); @AoH = ( { age => \$age_ref[0] }, {}, { age => \$age_ref[1] }, ); use Data::Dumper; print Dumper \@age_ref; @age_ref = (1, 2); use Data::Dumper; print Dumper \@AoH;
($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^4: Put references to array of hash elements in an array
by tel2 (Pilgrim) on Aug 03, 2018 at 07:41 UTC | |
by choroba (Cardinal) on Aug 03, 2018 at 08:40 UTC | |
by tel2 (Pilgrim) on Aug 03, 2018 at 09:50 UTC | |
by choroba (Cardinal) on Aug 03, 2018 at 09:58 UTC | |
by tel2 (Pilgrim) on Aug 03, 2018 at 10:37 UTC | |
|