in reply to Trying to access array within hash
foreach my $policy (values %policies) { my $polMembers = $policy->[ (lc($targetRole) eq "source") ? 2 +: 4 ]; local $" = "\n"; print "@$polMembers\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to access array within hash
by clegane (Novice) on Jun 04, 2013 at 13:47 UTC | |
by LanX (Saint) on Jun 04, 2013 at 14:16 UTC |