develooper Front page | perl.perl6.users | Postings from July 2021

Re: [naive] hash assingment

Thread Previous | Thread Next
Patrick R. Michaud
July 14, 2021 23:18
Re: [naive] hash assingment
Message ID:
On Wed, Jul 14, 2021 at 07:41:14PM +0000, Daniel Sockwell wrote:
> (Also, you may already know this, but when the keys of your hash are 
> strings, you can write %a<column1> instead of %a{'column1'}  )

A minor nit: this only works if the string keys don't contain whitespace.
(The single angle bracket postfixes use the same parsing rules as qw().)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About