Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: nested foreach loop not working

by Annie17 (Initiate)
on Dec 21, 2021 at 12:26 UTC ( [id://11139801]=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found