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

Re: I need hash inside a hash help

Thread Previous | Thread Next
From:
JJ Merelo
Date:
January 11, 2019 19:08
Subject:
Re: I need hash inside a hash help
Message ID:
CAJoLtgcaCoEoFo5LEhsEoFJTf1a_uS_hEga-A_TT_see-W8UyQ@mail.gmail.com
What would you say is the error, according to where the arrow points to?
Maybe some unclosed double quotes?

El vie., 11 ene. 2019 a las 19:57, ToddAndMargo via perl6-users (<
perl6-users@perl.org>) escribió:

> 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
>


-- 
JJ

Thread Previous | 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