From the docs:
Identifiers can contain colon pairs. The entire colon pair becomes part of the name of the identifier.
Here is a nicer example of that:
my $foo:bar<2> = 5;
say $foo:bar(1+1) # OUTPUT: «5»
… but why?
This is probably some material for faq-why (“Why things are the way they are in Perl 6”).
From the docs:
Here is a nicer example of that:
… but why?
This is probably some material for faq-why (“Why things are the way they are in Perl 6”).