CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Mr Keystrokes] converting hash to AoH: Edit Log



Chris Charley
User

Jul 25, 2017, 9:41 AM


Views: 8937
Re: [Mr Keystrokes] converting hash to AoH

Yes, that is a hash of arrays of hashes but it doesn't display that way in your output because the hash was used for Dumper instead of a reference to that hash.


Code
print Dumper %some_hash


To see the structure, use a reference.


Code
print Dumper \%some_hash



(This post was edited by Chris Charley on Jul 25, 2017, 9:49 AM)


Edit Log:
Post edited by Chris Charley (User) on Jul 25, 2017, 9:43 AM
Post edited by Chris Charley (User) on Jul 25, 2017, 9:49 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives