in reply to Re: nested foreach loop not working
in thread nested foreach loop not working

$VAR1 contains the output of attributestatements.while printing the values of hash , it is giving the result of only the last hash of array not all. how to loop through it to print all the values

Replies are listed 'Best First'.
Re^3: nested foreach loop not working
by choroba (Cardinal) on Dec 21, 2021 at 12:31 UTC
    I'm getting the following output:
    EXPRESSION [user.firstName] EXPRESSION [user.lastName]
    i.e. it contains all the "values". What output do you need instead?

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]