in reply to Extracting elements of an array reference?
Either use the array reference:
my $array_ref = $adsobj_child->{member}; foreach (@{$array_ref}) { print "$_\n"; }
Or dereference it immediately:
my @array = @{$adsobj_child->{member}}; foreach (@array) { print "$_\n"; }
See perlreftut, perllol and perldsc for more examples.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting elements of an array reference?
by steverippl (Novice) on Jul 26, 2006 at 17:01 UTC |