Re: need help with "next"

2017-05-23 Thread Richard Hainsworth
The code below seems unnecessarily complex. How about: my @Data = q:to/SAMPLE/; Mission D', Sol Wheat, Ted Moon, ; SAMPLE for @Data { next unless m/ 'NAME' .*? '>' $=( .*? ) '<' /; say $; # say implicitly stringifies $ } On Wednesday, May 24, 2017 01:20 PM,

Re: need help with "next"

2017-05-23 Thread ToddAndMargo
On 05/23/2017 09:30 PM, ToddAndMargo wrote: Hi All, I have a test code in progress and I haven't figured out how to get 'next' to work the way I want. next if $Line.contains( "TASK type" ); works, but if $Line.contains( "TASK type" ) { next; does not. What am I missing?

Re: need help with "next"

2017-05-23 Thread ToddAndMargo
Any data fulfilling the 'if' condition, and thus entering this block will be 'next'ed. Nothing will pass the 'next'. But no data not fulfilling the condition will 'see' the code below, which is not what you intend. Perhaps you omitted an 'else' clause after the 'next' statement? Okay I get

Re: need help with "next"

2017-05-23 Thread Richard Hainsworth
On Wednesday, May 24, 2017 12:46 PM, ToddAndMargo wrote: On Tue, May 23, 2017 at 11:30 PM, ToddAndMargo wrote: Hi All, I have a test code in progress and I haven't figured out how to get 'next' to work the way I want. next if $Line.contains( "TASK type" );

Re: need help with "next"

2017-05-23 Thread ToddAndMargo
On Tue, May 23, 2017 at 11:30 PM, ToddAndMargo wrote: Hi All, I have a test code in progress and I haven't figured out how to get 'next' to work the way I want. next if $Line.contains( "TASK type" ); works, but if $Line.contains( "TASK type" ) {

Re: need help with "next"

2017-05-23 Thread Brad Gilbert
You do realize that `next` immediately stops the current iteration and goes onto the *next* one right? That is, there is no point putting any code after it because it will never be run. On Tue, May 23, 2017 at 11:30 PM, ToddAndMargo wrote: > Hi All, > > I have a test code

need help with "next"

2017-05-23 Thread ToddAndMargo
Hi All, I have a test code in progress and I haven't figured out how to get 'next' to work the way I want. next if $Line.contains( "TASK type" ); works, but if $Line.contains( "TASK type" ) { next; does not. What am I missing? Many thanks, -T yes I know I still have some

Re: Task::Star and Panda

2017-05-23 Thread ToddAndMargo
On 05/23/2017 07:44 PM, Richard Hainsworth wrote: The issue is not poor quality software! The problem is community management. You have a point. I think the lack of interest is because they have decided to use zef instead. I was really using "Stinks" in a general sense. Next time I

Re: Task::Star and Panda

2017-05-23 Thread Richard Hainsworth
The issue is not poor quality software! The problem is community management. Panda was the standard way for installing Perl6 modules. It is embedded in nearly all of the "travis.yml" modules in the Ecosystem. I just fixed flaws in a module of mine, which began to *fail* the Travis

Re: Task::Star and Panda

2017-05-23 Thread ToddAndMargo
On 05/23/2017 11:30 AM, Elizabeth Mattijsen wrote: On 23 May 2017, at 20:21, ToddAndMargo wrote: On 05/23/2017 10:47 AM, Elizabeth Mattijsen wrote: On 23 May 2017, at 19:23, ToddAndMargo wrote: On 05/23/2017 06:30 AM, Will Coleda wrote: Removed?

Re: Invoking method by name found in variable

2017-05-23 Thread Elizabeth Mattijsen
> On 23 May 2017, at 20:23, Salve J Nilsen wrote: > > Patrick R. Michaud said: >> On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo wrote: >>> >>> given an object $o and the name of a method in $method = "run" >>> how can I invoke the $o.run() ? >>> >>> Something like

Re: Task::Star and Panda

2017-05-23 Thread ToddAndMargo
On 05/23/2017 11:28 AM, Timo Paulssen wrote: On 05/23/2017 08:21 PM, ToddAndMargo wrote: Would substituting "broken" for "stinks" be polite enough? That's wrong, though. You can still install modules with panda, it's not broken, just no longer in development. Panda kinda, sorta, sometimes

Re: Invoking method by name found in variable

2017-05-23 Thread Salve J Nilsen
Patrick R. Michaud said: On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo wrote: given an object $o and the name of a method in $method = "run" how can I invoke the $o.run() ? Something like $o.call($method) At one point it was done as $o."$method"() . my $method = 'say';

Re: Task::Star and Panda

2017-05-23 Thread Elizabeth Mattijsen
> On 23 May 2017, at 20:21, ToddAndMargo wrote: > On 05/23/2017 10:47 AM, Elizabeth Mattijsen wrote: >>> On 23 May 2017, at 19:23, ToddAndMargo wrote: >>> >>> On 05/23/2017 06:30 AM, Will Coleda wrote: Removed? It's still available

Re: Task::Star and Panda

2017-05-23 Thread Timo Paulssen
On 05/23/2017 08:21 PM, ToddAndMargo wrote: > Would substituting "broken" for "stinks" be polite enough? That's wrong, though. You can still install modules with panda, it's not broken, just no longer in development.

Re: Invoking method by name found in variable

2017-05-23 Thread Patrick R. Michaud
On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo wrote: > given an object $o and the name of a method in $method = "run" > how can I invoke the $o.run() ? > > Something like $o.call($method) At one point it was done as $o."$method"() . > my $method = 'say'; 123."$method"(); 123 Pm

Re: Invoking method by name found in variable

2017-05-23 Thread Elizabeth Mattijsen
> On 23 May 2017, at 20:01, Gabor Szabo wrote: > given an object $o and the name of a method in $method = "run" > how can I invoke the $o.run() ? > > Something like $o.call($method) $o.”$method"() $ 6 'my $method = "Str"; dd 42."$method"()' “42" Liz

Invoking method by name found in variable

2017-05-23 Thread Gabor Szabo
Hi, given an object $o and the name of a method in $method = "run" how can I invoke the $o.run() ? Something like $o.call($method) Gabor

Re: Task::Star and Panda

2017-05-23 Thread Elizabeth Mattijsen
> On 23 May 2017, at 19:23, ToddAndMargo wrote: > > On 05/23/2017 06:30 AM, Will Coleda wrote: >> Removed? It's still available athttps://github.com/tadzik/panda … > > It is on its way out. The developers over on the chat > line directed me to zef when I asked for help

Re: Task::Star and Panda

2017-05-23 Thread ToddAndMargo
On 05/23/2017 06:30 AM, Will Coleda wrote: Removed? It's still available athttps://github.com/tadzik/panda … It is on its way out. The developers over on the chat line directed me to zef when I asked for help getting panda working. Panda stinks. That's not really true or called for.

Re: Task::Star and Panda

2017-05-23 Thread Will Coleda
On Tue, May 23, 2017 at 3:24 AM, ToddAndMargo wrote: > On 05/23/2017 12:05 AM, Richard Hainsworth wrote: >> >> I was upgrading perl6 and following the standard instructions, only to >> find Task::Star is no longer in the Ecosystem. >> >> Surely if this is not an error, the

Re: Task::Star and Panda

2017-05-23 Thread ToddAndMargo
On 05/23/2017 12:05 AM, Richard Hainsworth wrote: I was upgrading perl6 and following the standard instructions, only to find Task::Star is no longer in the Ecosystem. Surely if this is not an error, the change should be notified. Also, I upgraded a module of my own, but the Travis testing

Task::Star and Panda

2017-05-23 Thread Richard Hainsworth
I was upgrading perl6 and following the standard instructions, only to find Task::Star is no longer in the Ecosystem. Surely if this is not an error, the change should be notified. Also, I upgraded a module of my own, but the Travis testing failed. It seems that panda is not working either.