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
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
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
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
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
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
# 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 $
# 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
# 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.
# 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
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
11 matches
Mail list logo