develooper Front page | perl.perl5.porters | Postings from June 2013

Re: key value hash slices in strings

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
June 16, 2013 17:36
Subject:
Re: key value hash slices in strings
Message ID:
20130616173551.GA32670@cancer.codesimply.com
* Ruslan Zakirov <ruz@bestpractical.com> [2013-06-16T05:21:28]
> Not sure what to do in the following case:
> 
> $ ./perl -Ilib/ -E 'my %h = 1..10; say qq{ %h{"1","3"} }'
>  %h{"1","3"}
> $ ./perl -Ilib/ -E 'my %h = 1..10; say qq{ @h{"1","3"} }'
>  2 4
> 
> Probably it should be left alone as the following doesn't work:

Agreed.

-- 
rjbs

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