Re: stashing an array in a hash and yanking it back out

2020-03-05 Thread William Michels via perl6-users
Hi Joe, I tested the code you put up using the REPL, and I have to start off by saying that I was unable to reproduce your results, specifically where you creat the "@m" array. This could be a REPL-specific issue, or a version-specific issue (mine is 2019.07.1 Perl 6.d): mbook:~ homedir$ perl6 To

Re: stashing an array in a hash and yanking it back out

2020-03-05 Thread Timo Paulssen
Hi William, The line that has the important difference is where you put a `my` in front of `%stash{'monsters'} = @monsters`. Probably a copy-paste error or something like that. >> my %stash> {}>> my @monsters = <> fingfangfoom>> tingler>>> [godzilla grendel wormface blob fingfangfoom tingler]>>

Re: perl6 vs ruby

2020-03-05 Thread Wyatt Chun
Hi Is perl6 totall renamed to raku? regards On Wed, Mar 4, 2020 at 4:15 AM Fields, Christopher J wrote: > A few people had started a port of some BioPerl code to Perl6 a while ago; > I tested this recently and it still passed tests. > > https://github.com/cjfields/bioperl6 > > It should be ren

Re: perl6 vs ruby

2020-03-05 Thread Elizabeth Mattijsen
Well, internally many parts still have Perl 6 in them. Renaming those is... an interesting task. Online, most resources have been renamed, but some still need to be done. This mailing list being one of them. Unfortunately, it is part of the crumbling Perl infrastructure, so it's unclear wha

Re: stashing an array in a hash and yanking it back out

2020-03-05 Thread William Michels via perl6-users
Hi Timo and thank you for the note. Yes, since I was working in the REPL, I tried compacting Joe's code by eliminating the "my %stash" line at the top, and adding "my" to the third line. I figured since Joe's code looked like a closure (curly brackets and all), it wouldn't be an issue. But the two

Re: perl6 vs ruby

2020-03-05 Thread Aureliano Guedes
I have another question for you. Maybe it must be better done in another thread... But, there is a way to compile Raku code in a binary capable to run in a system without a Raku installation? On Thu, Mar 5, 2020 at 6:17 AM Elizabeth Mattijsen wrote: > Well, internally many parts still have Perl

Re: perl6 vs ruby

2020-03-05 Thread Brad Gilbert
There isn't currently a way to compile to a single file, but there was a GSOC project that started on it. On Thu, Mar 5, 2020, 7:17 AM Aureliano Guedes wrote: > I have another question for you. Maybe it must be better done in another > thread... > But, there is a way to compile Raku code in a bi

Re: stashing an array in a hash and yanking it back out

2020-03-05 Thread Joseph Brenner
Timo Paulssen wrote: > The reason for that is that `my %foo{Bar}` is syntax for restricting > the keys of the hash to a specific type (by default it's `Str(Any)`) Hm.. That's certainly useful, I hadn't even gotten to wondering how to do that yet. > and giving a string instance ("monsters" in

Re: stashing an array in a hash and yanking it back out

2020-03-05 Thread Joseph Brenner
William Michels wrote: > Yes, since I was working in the REPL, I tried compacting Joe's code by > eliminating the "my %stash" line at the top, and adding "my" to the third > line. I noticed the additional "my" in there, but I wouldn't have been able to tell you why it was behaving like it was...