On 2019-11-30 06:28, Timo Paulssen wrote:
On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote:
One of the weirdest was
for @Result.kv -> $I, $Line {
if $I % 2 = 0
being told I could not change an immutable object.
Here you're trying to assign 0 to the result of $I % 2, if that's
On 2019-11-30 08:37, Veesh Goldman wrote:
Also, you may want to use the divisibility operator %% instead of
modulo. I think
if $i %% 2
Is clearer to read.
Hi Veesh,
Indeed! Thank you. Modulus (%) is burned into my head.
Now all I have to do is remember divisible (%%).
:-)
Thank you.
On 2019-11-30 00:57, William Michels via perl6-users wrote:
Hi Todd, You should definitely write up some code and post it here on
the mailing list, so we all can test it. I found an error "Cannot
modify an immutable Match" a while back (Oct 2019), and it turned out
to be a bug:
On 2019-11-30 00:10, ToddAndMargo via perl6-users wrote:
On 2019-11-23 18:26, ToddAndMargo via perl6-users wrote:
Hi All,
When folks write programs that read the run line like
/a abc /r xyz
or
/r xyz /a aaabc
or
dd bs=4096 if=xxx.iso of=/dev/sdc
basically, in
Also, you may want to use the divisibility operator %% instead of modulo. I
think
if $i %% 2
Is clearer to read.
On Sat, Nov 30, 2019, 16:28 Timo Paulssen wrote:
>
> On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote:
> > One of the weirdest was
> >
> > for @Result.kv -> $I, $Line {
>
On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote:
> One of the weirdest was
>
> for @Result.kv -> $I, $Line {
> if $I % 2 = 0
>
> being told I could not change an immutable object.
Here you're trying to assign 0 to the result of $I % 2, if that's
actually exactly the code. You want
On Sat, Nov 30, 2019 at 12:05 AM ToddAndMargo via perl6-users
wrote:
>
> On 2019-11-29 23:49, William Michels via perl6-users wrote:
> > On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users
> > wrote:
> >>
> >> Hi All,
> >>
> >> Windows 7, sp1, x64
> >> rakudo-star-2019.03-x86_64
On 2019-11-23 18:26, ToddAndMargo via perl6-users wrote:
Hi All,
When folks write programs that read the run line like
/a abc /r xyz
or
/r xyz /a aaabc
or
dd bs=4096 if=xxx.iso of=/dev/sdc
basically, in any order.
How do they keep track of what goes where?
On 2019-11-29 23:49, William Michels via perl6-users wrote:
On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users
wrote:
Hi All,
Windows 7, sp1, x64
rakudo-star-2019.03-x86_64 (JIT).msi
Why does this type of line keep giving me heartburn?
print( "Drive $Drive" ~ ":" ~ '\' ~ "