Re: String trim method

2015-08-05 Thread Tom Browder
On Wed, Aug 5, 2015 at 6:00 PM, Brandon Allbery wrote: > I don't know what you mean by "optimal" there, but you can say something > like > > $s .= trim; I really meant the preferred or best practice way. Thanks, Brandon! -Tom

Re: String trim method

2015-08-05 Thread Brandon Allbery
On Wed, Aug 5, 2015 at 6:47 PM, Tom Browder wrote: > I see that to trim white space from a strings's both ends I have to do > this: > > my $s = ' yada yada '; > $s = $s.trim; > > Is that the optimum way? > I don't know what you mean by "optimal" there, but you can say something like

String trim method

2015-08-05 Thread Tom Browder
I see that to trim white space from a strings's both ends I have to do this: my $s = ' yada yada '; $s = $s.trim; Is that the optimum way? Thanks. Best regards, -Tom

[perl #123835] Cannot use 'is rw' on optional parameter

2015-08-05 Thread Christian Bartolomaeus via RT
The relevant sentences from the design docs (S06, introduced with commit 7846594ee4): "Since this option [is rw] forces an argument to be required, it cannot coexist with the ? mark to make an argument optional. (It may, however, be used with = indicating a default, but only if the default expr

Re: [perl #116439] Subsets and missing-but-optional arguments don't mix well

2015-08-05 Thread Brandon Allbery
On Wed, Aug 5, 2015 at 4:34 PM, Christian Bartolomaeus via RT < perl6-bugs-follo...@perl.org> wrote: > Nowadays the error message is: > > $ perl6 -e 'subset UInt of Int where * >= 0; sub foo (UInt $bar?) { }; > foo()' > Invocant requires an instance of type Int, but a type object was passed. > Did

[perl #116439] Subsets and missing-but-optional arguments don't mix well

2015-08-05 Thread Christian Bartolomaeus via RT
Nowadays the error message is: $ perl6 -e 'subset UInt of Int where * >= 0; sub foo (UInt $bar?) { }; foo()' Invocant requires an instance of type Int, but a type object was passed. Did you forget a .new? in block at -e:1 I did some reading and it looks like this is not a bug after all. From

[perl #125757] shell().exitcode is always 0 when :out is used

2015-08-05 Thread via RT
# New Ticket Created by Rob Hoelz # Please include the string: [perl #125757] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125757 > See the attached script. use v6; use Test; plan 1; my $p = shell('false', :out); isnt $

[perl #125756] Reading from Proc.out after using :merge with shell() segfaults

2015-08-05 Thread via RT
# New Ticket Created by Rob Hoelz # Please include the string: [perl #125756] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125756 > See the attached script.use v6; my $p = shell('ls', :out, :merge); $p.out.slurp-rest

[perl #125754] [BUG] handles Positional doesn't "work"

2015-08-05 Thread via RT
# New Ticket Created by Justin DeVuyst # Please include the string: [perl #125754] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125754 > Hello, I recently tried to make a custom array type so that I could type the values.

[perl #125753] :ignorecase doesn't apply to character ranges

2015-08-05 Thread via RT
# New Ticket Created by Rob Hoelz # Please include the string: [perl #125753] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125753 > For example: > "%E3%81%82" ~~ m:ignorecase/["%" (<[a..f0..9]> ** 2)]+/ && say $/[0] Only p

[perl6/specs] 4c0e9c: Remove p5=> fossil.

2015-08-05 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 4c0e9cd692c54477373d5fb09c11215278137075 https://github.com/perl6/specs/commit/4c0e9cd692c54477373d5fb09c11215278137075 Author: ShimmerFairy Date: 2015-08-04 (Tue, 04 Aug 2015) Changed paths: M S06-r