in reply to Re: Re: Dereferencing an array of hash references
in thread Dereferencing an array of hash references
Then access loop information with the -> dereferencing op:my $loop = db_retrieve_records();
Note also that I used @$loop-1 for the last element of the outer loop. UPDATE: Mr. Freidman's is a much simpler fix. Consider mine as an alternative way to do it :) -Markfor my $i (0..@$loop-1) { foreach (qw( action type domain priority target )) { $body .= $loop->[$i]{$_}; } $body .= "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Dereferencing an array of hash references
by mfriedman (Monk) on Jun 26, 2002 at 22:10 UTC |