On Sun, Oct 21, 2018, 12:09 Richard Hainsworth
wrote:
> I am trying to find a way to send a message via STDERR to a user, and to
> exit, but to eliminate the backtrace printing.
>
> so .. either I use your suggestion of 'exit note $message' which I find
> elegant, but so far difficult to test.
>
And that is the way to test it.
but then I cant work out how to get the message. I've been looking at
Zoffix's Test::Output, but not
Incomplete sentence there. I guess it doesn't work for you? Tell
us how you tried to use it, what you were expecting, and what happened
instead.
On Fri, 14 Sep 2018 18:15:21 -0400
Brandon Allbery wrote:
> Magic variables make multiple threads impossible, which is why perl 5
> is stuck with ithreads: what happens if two threads each "run"
> something at around the same time?
>
> In Perl 6, you have a Proc object for each subprocess, and c
The following code:
use v6;
my $str = 'abc';
sub s {1};
say s;
$str ~~ s:g/ b /x/;
dd $str;
say $/;
outputs:
1
Str $str = "axc"
(「b」)
as expected.
But, just remove the :g global flag and:
===SORRY!=== Error while compiling /home/hogaboom/hogaboom/Perl6/p6ex/./t.p6
Undeclared routine:
Short answer: Yes.
Longer: Perl 6 allows you to over-ride the names of routines. 's' is a
routine. You over-rode it.
Perl 6 is different from most other languages because it uses multiple
dispatch. Effectively this means it is not just the name of the
subroutine (s) that matters, but also it