develooper Front page | perl.perl6.users | Postings from January 2019

I need hash inside a hash help

Thread Next
From:
ToddAndMargo via perl6-users
Date:
January 11, 2019 18:57
Subject:
I need hash inside a hash help
Message ID:
e58cc40b-e247-9bc7-94b8-3a62c84a32a4@zoho.com
Hi All,

How do I do a hash inside a hash?

So far I have:

$ p6 'my %Vendors=("acme" => ( "ContactName" => "Larry, "AccountNo" => 
1234 ) ); say %Vendors;'
===SORRY!=== Error while compiling -e


I want to be able to have both a Contact Name and and AccountNo
associated with each key in %Vendors.


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About