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

Re: I need hash inside a hash help

Thread Previous
From:
ToddAndMargo via perl6-users
Date:
January 11, 2019 19:17
Subject:
Re: I need hash inside a hash help
Message ID:
6336ea74-5137-b439-fe77-6c47904054e9@zoho.com
On 1/11/19 11:07 AM, JJ Merelo wrote:
> 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 <mailto: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

I missed the quote after Larry.  Timo found it for me.

Thread Previous


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