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 [email protected] [email protected] [email protected]
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: PGP signature
