develooper Front page | perl.perl6.users | Postings from November 2022

Re: What is this "\t"?

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 29, 2022 02:21
Subject:
Re: What is this "\t"?
Message ID:
132a4b88-8fdf-bd25-815c-66851cdefaf5@zoho.com
On 11/28/22 17:40, ToddAndMargo wrote:
> Sigilless variable
> https://docs.raku.org/language/glossary#Sigilless_variable
> 
>       Sigilless variables are actually aliases to the
>       value it is assigned to them, since they are
>       not containers. Once you assign a sigilless
>       variable (using the escape \), its value cannot
>       be changed.


Not to beat a dead horse, but when does that stop me!

"\" escape to a beginner means to escape the
following character

    > say "\$x"
    $x

    > print '\\abc\:\:' ~ "\n"
    \abc\:\:

So without a proper sigil explanation for
beginners, "using the escape \" means nothing.




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About