Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
On 01/10/16 12:27, Brandon Allbery wrote: On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit mailto:griz...@smit.id.au>> wrote: I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method spurt(IO::Path:D: Cool $contents, :

Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
On 01/10/16 12:22, Francis (Grizzly) Smit wrote: I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method spurt(IO::Path:D: Cool $contents, :$bin, |c) but I cannot find the |c syntax in the docs I have googled but no good a pointer or li

Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Brandon Allbery
On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit wrote: > I keep finding stuff like this: > > multi method spurt(IO::Path:D: Blob $contents, :$bin, |c)multi method > spurt(IO::Path:D: Cool $contents, :$bin, |c) > > > but I cannot find the |c syntax in the docs I have googled but no good

What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method spurt(IO::Path:D: Cool $contents, :$bin, |c) but I cannot find the |c syntax in the docs I have googled but no good a pointer or link would be good. -- .~. In my life God com

Re: subset problem

2016-09-30 Thread mimosinnet
El Saturday, 17 de September del 2016 a les 10:21, MT va escriure: Btw the following has the same problem; > my Hash $h = {a=>1,b=>2} {a => 1, b => 2} > $h:exists True > subset mh of Str where $h{$_}:exists (mh) > my mh $x = 'b' Type check failed in assignment to $x; expected mh but got Str ("b