is uselessly complicated.foreach my $sheet (keys %{ $doc{'_source'}{'sheets'} }) { foreach my $columns (@{ $doc{'_source'}{'sheets'}{$sheet}{'formula +tes'} }) { # ...
If you use the values function instead of the keys function, you don't have to dereference the whole structure several times.
For example, re-using the $doc variable definition provided by Athanasius, you could access the formulas this way:
Which prints out:for my $sheet (values %{ $doc->{_source}{sheets} }) { for my $columns ( values %{$sheet} ) { for my $one ( @{ $columns }) { print "$_->{formula} \n" for values %{$one}; } } }
HTH.((DelvSts = Deleted + RcdTyp = DelAck) & RcdTyp = DelRecpt) ((DelvSts = UserIncomingSMBarred & LFR = SMSC_PR_LC_SMSC_Encoding_Erro +r) | RcdTyp = DelRecpt) (RcdTyp = DelAck + OrigInf = SMPP)
In reply to Re: Return value of Search::Elasticsearch search query
by Laurent_R
in thread Return value of Search::Elasticsearch search query
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |