On Sun, Jun 07, 2020 at 05:33:43PM -0400, Will Coleda wrote:
> On Sun, Jun 7, 2020 at 4:53 PM Peter Pentchev <r...@ringlet.net> wrote:
> >
> > On Sun, Jun 07, 2020 at 12:32:09PM -0700, ToddAndMargo via perl6-users 
> > wrote:
> > > On 2020-06-07 02:32, Peter Pentchev wrote:
> > >
> > > > BEGIN {
> > > >     $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2';
> > > > }
> > >
> > > Does the final "}" close the BEGIN?
> >
> > Well, there is an opening { after "BEGIN", so, yes.
> >
> > More precisely, it closes the block that is to be executed early.
> >
> > > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2';
> > >
> > > Hi Peter,
> > >
> > > Would you explain what the ?? and !! are
> > > doing in the above?
> >
> > https://docs.raku.org/language/operators#infix_??_!!
> 
> the URL with literal !! in it didn't work for me, but this does:
> https://docs.raku.org/language/operators#infix_??_%21%21

Ah, but of course. Aren't Web standards and browsers great. I did copy
and paste it from the location bar, and I did not stop to think about
it, since I foolishly trusted that my browser would actually copy
a usable URL.

Thanks.

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

Attachment: signature.asc
Description: PGP signature

Reply via email to