Annie17 has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash "$VAR1 = [ { 'namespace' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified', 'name' => 'First Name', 'values' => 'user.firstName' , 'type' => 'EXPRESSION' }, { 'namespace' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified', 'name' => 'Last Name', 'values' => 'user.lastName' , 'type' => 'EXPRESSION' } ]; I want to read the values into excel .Need help with the code .
my $samlattr = $responsetextall[$i][$j]{attributeStatements}; foreach my $result (@{ $sam +lattr } ) { #print "$result->{type}\n"; foreach my $var (@{ $samlattr{ +$result} } ) { print "$var->{type}\n"; $worksheet->write($r, 14,($var->{value +s}) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: nested foreach loop not working
by choroba (Cardinal) on Dec 21, 2021 at 10:26 UTC | |
by Annie17 (Initiate) on Dec 21, 2021 at 12:26 UTC | |
by choroba (Cardinal) on Dec 21, 2021 at 12:31 UTC | |
|
Re: nested foreach loop not working
by BillKSmith (Monsignor) on Dec 21, 2021 at 14:46 UTC | |
by BillKSmith (Monsignor) on Dec 21, 2021 at 21:42 UTC | |
by Annie17 (Initiate) on Dec 24, 2021 at 18:12 UTC | |
by hippo (Archbishop) on Dec 26, 2021 at 17:43 UTC | |
by BillKSmith (Monsignor) on Dec 27, 2021 at 18:48 UTC |