Re: Need help with Nil values

2016-02-22 Thread TS xx
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

Re: Need help with Nil values

2016-02-22 Thread Brandon Allbery
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

Re: Need help with Nil values

2016-02-22 Thread Timo Paulssen
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

Perl 6 for system-wide use: best practice?

2016-02-22 Thread Tom Browder
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

Re: Most wanted module: Net::SMTP

2016-02-22 Thread Will Coleda
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

Re: Most wanted module: Net::SMTP

2016-02-22 Thread Tom Browder
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 >

Re: capture through regex variable

2016-02-22 Thread Tobias Leich
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

Re: capture through regex variable

2016-02-22 Thread 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-capturing by default. You can easily capture the result by using something like

capture through regex variable

2016-02-22 Thread Theo van den Heuvel
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 =