Been playing with perl6 and it is truly amazing.
I'm somewhat confused as to when I should should wrap subroutine
invocations with `try`. My `CATCH` clauses seem to be able to catch thrown
Exception instances if I use `try` or not. I see in the "Exceptional Perl
6" slide deck (
http://moritz.faui2
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #126718]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126718 >
Consider this:
m: use lib 'lib'; use lib 'lib'; use lib 'lib'; say @*INC.grep(* eq
'fil
# New Ticket Created by raiph
# Please include the string: [perl #126721]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126721 >
What I did
==
$/ := "Uhoh";
put "Foo".subst: /Foo/, -> $/ {$/};
put "Foo".subst: /Foo/,
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #126717]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126717 >
m: class X::Test is Exception { method message { $.x } }; die
X::Test.new
rakudo-moar :
On Thu May 14 12:49:54 2015, tony.od...@live.com wrote:
> CODE:
> -
> my $promise = start { sleep 1; $*E.say;};
> my $*E = 5;
> await $promise;
> -
> EXPECTED:
> -
> 5--
On Tue May 04 13:49:19 2010, masak wrote:
> the lack of an argument counts as narrower than a slurpy.
> but what about a single optional?
> rakudo: multi foo() { say "OH HAI" }; multi foo(Int $a?) {};
> multi foo(Str $a?) {}; foo
> rakudo 1eef08: OUTPUT«Ambiguous dispatch to multi 'foo'.
> Ambi
# New Ticket Created by Justin DeVuyst
# Please include the string: [perl #126714]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126714 >
[jdv@wieldy ~]$ perl6 -e 'role R {has Any $.a};R.new.a.say' # as
expected
(Any)
[jdv@w
# New Ticket Created by Pepe Schwarz
# Please include the string: [perl #126713]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126713 >
Consider the following two regexen and their matching output, or lack thereof:
11:39 < p
On Thu Nov 15 05:08:56 2012, bbkr wrote:
> 2012.10 - still broken
>
> $ perl6 -e 'enum X ; say a ~~ Int; say True ~~ Int'
> True
> False
Fixed now; nine++ did the majority of the hard work, and I cleaned up the last
few issues just now and merged the work and spectest updates, including
coverag
# New Ticket Created by Stephane Payrard
# Please include the string: [perl #126712]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126712 >
Is it supported?
What is the syntax?
My attempts to use it fail even if the same exam
10 matches
Mail list logo