Re: Need "contains" help

2017-05-02 Thread ToddAndMargo
On 05/02/2017 10:02 PM, Shrivats wrote: Careful :-) You're actually closing the single quote you​started with perl6 -e. In other words, this is your Shell's doing. You can execute this as a script with single quote around string literals with no issues Streetcars Mumble. And I did know

Re: Need "contains" help

2017-05-02 Thread ToddAndMargo
On 05/02/2017 10:02 PM, Shrivats wrote: Careful :-) You're actually closing the single quote you​started with perl6 -e. In other words, this is your Shell's doing. You can execute this as a script with single quote around string literals with no issues Streetcars Mumble. I did know that.

[perl #131242] Bug IO::Path method move

2017-05-02 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #131242] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131242 > With Rakudo version 2017.04.3-66-g7648793 built on MoarVM version 2017.04-44-gf0db882

[perl #131238] [LTA] "This type cannot unbox to a native string" when not returning a `Str` from method `gist`

2017-05-02 Thread Sam S. via RT
Fair enough.

[perl #131242] Bug IO::Path method move

2017-05-02 Thread Zoffix Znet via RT
On Tue, 02 May 2017 03:30:44 -0700, mt1...@gmail.com wrote: > With Rakudo version 2017.04.3-66-g7648793 built on MoarVM version > 2017.04-44-gf0db882 > implementing Perl 6.c. on a system (uname -a) Linux h03-fedora > 4.10.11-100.fc24.x86_64 #1 SMP Tue Apr 18 17:25:04 UTC 2017 x86_64 > x86_64

[perl #131242] Bug IO::Path method move

2017-05-02 Thread Zoffix Znet via RT
On Tue, 02 May 2017 03:30:44 -0700, mt1...@gmail.com wrote: > With Rakudo version 2017.04.3-66-g7648793 built on MoarVM version > 2017.04-44-gf0db882 > implementing Perl 6.c. on a system (uname -a) Linux h03-fedora > 4.10.11-100.fc24.x86_64 #1 SMP Tue Apr 18 17:25:04 UTC 2017 x86_64 > x86_64

[perl #131247] [REGRESSION] )> in regex results in stuff being matched wrongly ( /)> . <(/ )

2017-05-02 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131247] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131247 > Code: say "abc" ~~ /)> . <(/ Result (2015.12 … 2017.03): #

Need "contains" help

2017-05-02 Thread ToddAndMargo
Hi All, Why does this work $ perl6 -e 'my $x="abcdef"; if $x.contains( "abc" ) { say "yes" } else { say "no" };' yes And this does not? $ perl6 -e 'my $x="abcdef"; if $x.contains( 'abc' ) { say "yes" } else { say "no" };' ===SORRY!=== Error while compiling -e Undeclared routine: abc

Re: Need "contains" help

2017-05-02 Thread Shrivats
Careful :-) You're actually closing the single quote you​started with perl6 -e. In other words, this is your Shell's doing. You can execute this as a script with single quote around string literals with no issues Streetcars On May 3, 2017 10:27, "ToddAndMargo" wrote: >

Modulino in Perl 6

2017-05-02 Thread Gabor Szabo
Using the caller() in Perl 5 one can figure out if the file was loaded as a module or executed as a script. In Python one could check if __name__ is equal to "__main__". Is there some way in Perl 6 to tell if a file was executed directly or loaded into memory as a module? regards Gabor

Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread mt1957 via RT
Thanks very much Marcel

Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread Marcel Timmerman
Thanks very much Marcel

[perl #131244] Baggy/Setty .Str/.gist/.perl needs to guarantee order, like Map/Hash do

2017-05-02 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131244] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131244 > https://irclog.perlgeek.de/perl6-dev/2017-05-02#i_14519628 * TimToady notes that

[perl #131243] [REGEX] Interpolating a Hash in a regex treats it as a list and errors out

2017-05-02 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131243] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131243 > Both of these forms produce the error below my %stuff = ; say 'foo bar meows' ~~

Re: Modulino in Perl 6

2017-05-02 Thread Gianni Ceccarelli
On Tue, 2 May 2017 17:02:40 +0200 Gabor Szabo wrote: > Is there some way in Perl 6 to tell if a file was executed directly or > loaded into memory as a module? One way that seems to work: define a ``sub MAIN``; it will be invoked when you execute the file as a program, but

Re: Modulino in Perl 6

2017-05-02 Thread Larry Wall
On Tue, May 02, 2017 at 05:02:40PM +0200, Gabor Szabo wrote: : Using the caller() in Perl 5 one can figure out if the file was loaded : as a module or executed as a script. : : In Python one could check if __name__ is equal to "__main__". : : Is there some way in Perl 6 to tell if a file was