|
hi adym --
In a message dated 6/16/2006 4:18:42 P.M. Eastern Standard Time,
[EMAIL PROTECTED] writes:
> my $ltheEntry;
> foreach $ltheEntry ($ltheConfig->{'notifications'}->{'email-addr'}) { > printf $ltheEntry; > printf $ltheEntry->{content}.":".$ltheEntry->{type}; > } $ltheConfig->{'notifications'}->{'email-addr'} is a reference to
an array. if it is
to be dereferenced as an array, you must use the @
array dereferencer.
the array contains hash references. the concatenation is not
needed as
hash references to scalar hash values interpolate in strings as any scalar
does.
try this (untested):
for my $entry_hashref
( @{ $ltheConfig->{'notifications'}->{'email-addr'} } ) {
printf
"$entry_hashref->{content}:$entry_hashref->{type}";
}
hth -- bill walters
|
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
