On 2019-12-05 23:19, ToddAndMargo via perl6-users wrote:
On 2019-12-05 03:09, William Michels via perl6-users wrote:
What happens when you type "perl6" or "raku" at the bash command prompt?
Hi William,
On my shop machine, it jumps to the next line with an
empty flashing cursor
On my office machine, it told me to install
zef install Readline
After that, I get:
$ perl6
To exit type 'exit' or '^D'
>
and
> say "hello World"
hello World
> say "B" ~ Q[:\] ~ " drive dismounted"
B:\ drive dismounted
>
and sticking an obvious booboo into it
> if 3 % 2 = 1 {say "odd"};
Cannot modify an immutable Int (1)
in block <unit> at <unknown file> line 1
Plus I can use the arrow keys to recall previous lines too.
Time up update my Perl6 on my shop computer!
No more hassling with `perl6 -e` !!!
Dude! THANK YOU !!!!!!
-T
You've created a monster!!
perl6
To exit type 'exit' or '^D'
> my $x = Q[</b><br>]
</b><br>
> say $x
</b><br>
> (my $y = $x ) ~~ s/ Q[<] .* //;
===SORRY!=== Error while compiling:
Unrecognized regex metacharacter < (must be quoted to match literally)
------> (my $y = $x ) ~~ s/ Q[<⏏] .* //;
> my $x = Q[abc</b><br>]
abc</b><br>
> (my $y = $x ) ~~ s/ '<' .* //;
「</b><br>」
> (my $y = $x ) ~~ s/ '<' .* //; say $y
abc
> (my $y = $x ) ~~ s/ '<' .* //; say $x; say $y
abc</b><br>
abc
Thank you!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~