Thanks Brandon,
That was what I was looking for.
I'm trying it already.
Regards,
Emiliano
From: Brandon Allbery
Sent: Tuesday, February 23, 2016 2:21 AM
To: TS xx
Cc: perl6-users@perl.org
Subject: Re: Need help with Nil values
On Mon, Feb 22, 2016 at 9:15
Thanks,
That was it.
Somtimes I get confused with the way other languages treat undefined/null/nil
values.
Regards,
Emiliano
From: Timo Paulssen
Sent: Tuesday, February 23, 2016 2:20 AM
To: perl6-users@perl.org
Subject: Re: Need help with Nil values
He
On Mon, Feb 22, 2016 at 9:15 PM, TS xx wrote:
> I expect $.value to hold Strings, but I want to be able to instantiate
> MyClass whether I have a value already or not, and I also want to be able
> to tell if $.value has a real String or not. Is this possible?
You don't want Nil there; it's not
Hello Emiliano,
In this case, I think you may want to use just "Str" instead of "Nil".
"Str" is the "type object" for Str objects, and you can check whether
it's a string like "foo" or just the Str object by checking $!value.defined.
There's a FAQ answer that's about "Any", but it works the s
Dear perl 6 users,
I am trying to pass a Nil value to a method new of a class that expects a Str.
The method new will assign this Nil value to a Str member variable. Then, this
value will change during runtime.
At the moment I am getting this error: Type check failed in binding $value;
expec
What is recommended for installing Perl 6 for system-wide use?
I'm comfortable running Perl 6 under my user directory and keeping it
current with the latest releases with rakudobrew, but what is the
recommended way to install for system-wide use?
Unless I hear otherwise, I plan to continue to use
On Mon, Feb 22, 2016 at 9:32 AM, Will Coleda wrote:
> On Mon, Feb 22, 2016 at 9:05 AM, Tom Browder wrote:
>> On Mon, Feb 22, 2016 at 12:08 AM, Kaare Rasmussen wrote:
>>> On 2016-02-20 20:50, Tom Browder wrote:
...
> Specifically not addressing the "should it be on the most wanted list
> or not s
On Mon, Feb 22, 2016 at 9:05 AM, Tom Browder wrote:
> On Mon, Feb 22, 2016 at 12:08 AM, Kaare Rasmussen wrote:
>> On 2016-02-20 20:50, Tom Browder wrote:
>>>
>>> I notice that module Net::SMTP is on the most wanted list and shown as
>>> a WIP. However, on a lark I decided to try:
>>
>> I guess yo
On behalf of the Rakudo development team, I’m very happy to announce the
February 2016 release of Rakudo Perl 6 #96. Rakudo is an implementation of
Perl 6 on the Moar Virtual Machine[^1].
This release implements the 6.c version of the Perl 6 specifications.
It includes bugfixes and optimizations o
On Mon, Feb 22, 2016 at 12:08 AM, Kaare Rasmussen wrote:
> On 2016-02-20 20:50, Tom Browder wrote:
>>
>> I notice that module Net::SMTP is on the most wanted list and shown as
>> a WIP. However, on a lark I decided to try:
>
> I guess you refer to
> https://github.com/perl6/perl6-most-wanted/blob/
As a rule of thumb:
Every non-Letter character after the opening angle bracket makes it
non-capturing.
Am 22.02.2016 um 11:37 schrieb Theo van den Heuvel:
Thanks Patrick,
it works great.
Theo
Patrick R. Michaud schreef op 2016-02-22 11:16:
Dynamic subregexes such as <$top> are non-capturi
Thanks Patrick,
it works great.
Theo
Patrick R. Michaud schreef op 2016-02-22 11:16:
Dynamic subregexes such as <$top> are non-capturing by default. You
can easily capture the result by using something like
instead:
$ cat xyz.p6
my $match;
my $top = rx/ \( $ = [ \w* ] \) /;
Dynamic subregexes such as <$top> are non-capturing by default. You can easily
capture the result by using something like instead:
$ cat xyz.p6
my $match;
my $top = rx/ \( $ = [ \w* ] \) /;
given "(abc)" {
$match = m/^ /;
}
if $match {
say
Hi all,
I am trying to change a regex programmatically. For that I insert a
variable in another regex. However, the match object appears to have
lost the capture of the inner regex. In a code example:
=
my Match $match;
my $top = rx/ \( $ = [ \w* ] \) /;
given "(abc)" {
$match = m
14 matches
Mail list logo