<> is part of the quoting sub-language

It is short for

    q:w' a b c d '

which is short for

    q:words' a b c d '

Note that you can add spaces

    q :words ' a b c d '

Even this is short.
I'm going to show you various ways of writing the exact same thing

    q :w(1) ' a b c d '
    q :w(True) ' a b c d '
    Q :q :w ' a b c d '
    Q :single :words ' a b c d '
    Q :single(True) :words(True) ' a b c d '

Note that :Identifier is short for :Identifier(True)

To learn more about the quoting sub-language read:

https://docs.perl6.org/language/quoting
On Fri, Oct 5, 2018 at 7:00 AM Todd Chester <toddandma...@zoho.com> wrote:
>
>
>
> On 10/5/18 4:51 AM, Laurent Rosenfeld via perl6-users wrote:
> > You don't even need the quotes:
> >
> >  > say <ab cd ef>[3,1];
> > (Nil cd)
> >  >
>
> Hi Laurent,
>
> A thing of beauty!
>
> Not to ask to stupid a question (when has that ever
> stooped me), but since [] is considered a subroutine,
> is <> also considered a subroutine too? If so, what
> is it called?
>
> -T

Reply via email to