Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Bruce Gray
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 http://doc.perl6.org/routine/substr I d

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

Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Bruce Gray
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 http://doc.perl6.org/routine/substr I d

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread mt1957
On 06/08/2015 09:24 PM, Tobias Leich wrote: say $*DISTRO.cur-sep Hi Tobias, It returns a comma. I've used this in the path and processing is now ok. I was stuck with panda unable to do anything. As a workaround I can continue now. Hopefully this separator will be set back to ':' again. G

[perl6/specs] 555788: Correct "to" -> "too"

2015-06-08 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 55578889f62c345a325d0f54db72d4b44434a819 https://github.com/perl6/specs/commit/55578889f62c345a325d0f54db72d4b44434a819 Author: Paul Cochrane Date: 2015-06-08 (Mon, 08 Jun 2015) Changed paths: M S32-

panda occurrence of deprecated code message

2015-06-08 Thread mt1957
l.s. Running newest panda code on newest perl6 (This is perl6 version 2015.05-139-g2281689 built on MoarVM version 2015.05-49-g07fbd62). $ panda list ... Method for (from Any) seen at: /home/marcel/Software/Pack

Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Paul Cochrane
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 any way to do a > replacement. What is the idio

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: Problem found with PERL6LIB environment variable

2015-06-08 Thread Tobias Leich
Hi, you might use this: say $*DISTRO.cur-sep rakudo-moar 228168: OUTPUT«,␤» Am 08.06.2015 um 21:17 schrieb Brandon Allbery: > On Mon, Jun 8, 2015 at 3:09 PM, Fields, Christopher J > mailto:cjfie...@illinois.edu>> wrote: > > I had the same problem recently, tied to the revised path names >

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread Brandon Allbery
On Mon, Jun 8, 2015 at 3:09 PM, Fields, Christopher J wrote: > I had the same problem recently, tied to the revised path names (e.g. the > ‘file#’ prefix). Any reason for the change? Kinda caught me by surprise. > It's so that there can be things that are not directories of files that can be s

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread Fields, Christopher J
I had the same problem recently, tied to the revised path names (e.g. the ‘file#’ prefix). Any reason for the change? Kinda caught me by surprise. chris > On Jun 8, 2015, at 11:51 AM, mt1957 wrote: > > ls, > > Found another problem in the new rakudo (understood that was from 4/8). > Versio

Re: [perl #125334] min(+'a', +'a').say prints Inf but should produce an error

2015-06-08 Thread Patrick R. Michaud
On Mon, Jun 08, 2015 at 06:08:33AM -0700, Will Coleda via RT wrote: > I agree that this should be throwing the same conversion error. I disagree to the extent that making min() throw the conversion error seems to go against the purpose of designing soft/lazy Failure types into Perl 6 in the first

Problem found with PERL6LIB environment variable

2015-06-08 Thread mt1957
ls, Found another problem in the new rakudo (understood that was from 4/8). Version: 'This is perl6 version 2015.05-139-g2281689 built on MoarVM version 2015.05-49-g07fbd62' It seems that perl6 doesn't understand the environment variable PERL6LIB anymore. Example (in tcsh shell); $ setenv

Problem found with PERL6LIB environment variable (cont)

2015-06-08 Thread mt1957
ls, Also seems to go wrong for RAKUDOLIB Example (in tcsh shell); $ setenv RAKUDOLIB ".:lib:/home/marcel/Software/lib/perl6/lib" $ setenv PERL6LIB ".:lib:/home/marcel/Software/lib/perl6/lib" $ perl6 some-program.pl6 some-program.pl6 .. ===SORRY!=== Could not find Semi-xml in any of: file#.:lib

[perl #125334] min(+'a', +'a').say prints Inf but should produce an error

2015-06-08 Thread Will Coleda via RT
I agree that this should be throwing the same conversion error. Here's probably why it's giving Inf, though: $ perl6 > say min() Inf > say max() -Inf -- Will "Coke" Coleda