the URL with literal !! in it didn't work for me, but this does:
https://docs.raku.org/language/operators#infix_??_%21%21

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_??_!!
>
> 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

Reply via email to