Re: [perl #126494] [BUG] for lines() Hangs on 2 or More Files

2016-05-08 Thread Douglas E. Miles
I tried to reply on RT, but I couldn't. Was not able to reproduce on more current perl6: This is Rakudo version 2016.02-189-g8437418 built on MoarVM version 2016.02-33-g1e3d2ac Thanks! On 5/7/2016 1:07 PM, Sam S. via RT wrote: It works fine for me on a current Rakudo. (I'm using Linux, like

Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Douglas E. Miles
Thanks Paul! On 6/8/2015 2:46 PM, Paul Cochrane wrote: Hi Douglas, From http://perldoc.perl.org/functions/substr.html: substr has a 4th argument (or you can use substr as an lvalue) for replacement. substr EXPR,OFFSET,LENGTH,REPLACEMENT From http://doc.perl6.org/routine/substr I don't see

Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Douglas E. Miles
Thanks Bruce! On 6/8/2015 4:04 PM, Bruce Gray wrote: On Jun 8, 2015, at 3:51 PM, Douglas E. Miles wrote: Hi all! From http://perldoc.perl.org/functions/substr.html: substr has a 4th argument (or you can use substr as an lvalue) for replacement. substr EXPR,OFFSET,LENGTH,REPLACEMENT From

How to do a substring replacement in Perl 6

2015-06-08 Thread Douglas E. Miles
Hi all! From http://perldoc.perl.org/functions/substr.html: substr has a 4th argument (or you can use substr as an lvalue) for replacement. substr EXPR,OFFSET,LENGTH,REPLACEMENT From http://doc.perl6.org/routine/substr I don't see any way to do a replacement. What is the idiomatic way of doi

Re: Possible bug in NativeCall CStruct

2015-06-02 Thread Douglas E. Miles
= "baz"; say $foo' Foo.new(bar => "bar") Foo.new(bar => "baz") Note the lowercase str type. The normal Str type can be set by binding to the $!bar attribute from within the class, but not from the outside via arguments to .new sadly. Cheers, FROGGS Am 02.

Possible bug in NativeCall CStruct

2015-06-02 Thread Douglas E. Miles
Hi all! I just started learning Perl 6 about 5 days ago, so I may not know what I'm talking about, but I may have found a bug. I posted to #perl6 with my original code, and raydiak and timotimo were nice enough to golf it down for me: Str in CStruct blows up: $ perl6 > use NativeCall; class