Re: questions about qw<>

2015-10-13 Thread Elizabeth Mattijsen
> On 13 Oct 2015, at 20:21, Marc Chantreux wrote: > On Tue, Oct 13, 2015 at 05:59:04PM +0200, Elizabeth Mattijsen wrote: > an unnamed hash ? does it make sense? sub h() { my % = a => 42, b => 666 }; dd h Just another way to create an anonymous hash. Liz

Re: questions about qw<>

2015-10-13 Thread Marc Chantreux
On Tue, Oct 13, 2015 at 05:59:04PM +0200, Elizabeth Mattijsen wrote: > > designers for having a very good reason and i'm curious: what is actually > > this good reason for such a weird behave. > > Well, for one, it is according to spec. :-) :) > But the real reason, is that you can also use t

Re: questions about qw<>

2015-10-13 Thread Elizabeth Mattijsen
> On 13 Oct 2015, at 17:15, Marc Chantreux wrote: > > hello, > > playing with <>, two questions came to my mind: > > a) why isn't it "regular" ? > >use Test; >ok < foo bar bang > ~~ List, "a list"; >ok < foo bar > ~~ List, "a list"; >ok < foo > ~~ List, "a list

questions about qw<>

2015-10-13 Thread Marc Chantreux
hello, playing with <>, two questions came to my mind: a) why isn't it "regular" ? use Test; ok < foo bar bang > ~~ List, "a list"; ok < foo bar > ~~ List, "a list"; ok < foo > ~~ List, "a list"; diag "actually a Str"; ok < > ~~ List, "a list"; not only it