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

Re: I need hash string help

Thread Previous | Thread Next
From:
Tom Browder
Date:
January 12, 2019 02:23
Subject:
Re: I need hash string help
Message ID:
CAFMGiz9hv64__CLA6ML7okGJrzAFfHihezV1HTcW-WWVd+2Oog@mail.gmail.com
On Fri, Jan 11, 2019 at 20:15 ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:
...
> $p6 'my $x = "acme"; my %Vendors = ( acme => { ContactName => "Larry",
> AccountNo => 1234 } ); my Str $y = %Vendors{$x}<ContactName>.Str; say $y;'

In my experience, it helps often to avoid using strict typing unless really
needed.

Best regards,

-Tom

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