Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread Tobias Leich
Am 14.01.2016 um 01:31 schrieb ToddAndMargo: On 01/13/2016 12:51 PM, David H. Adler wrote: On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them? http

Re: CPAN and LWP::UserAgent question?

2016-01-13 Thread H.Merijn Brand
On Wed, 13 Jan 2016 12:48:47 -0800, ToddAndMargo wrote: > Hi All, > > I am thinking of starting the transition from Perl 5 to 6. > > The major CPAN modules I use in Perl 5 are: > > use Term::ANSIColor qw ( BOLD BLUE RED GREEN RESET ); > use Term::ReadKey qw ( ReadKey ReadMode ); > use Net::Nsl

Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread H.Merijn Brand
On Wed, 13 Jan 2016 16:31:15 -0800, ToddAndMargo wrote: > On 01/13/2016 12:51 PM, David H. Adler wrote: > > On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: > >> Hi All, > >> > >> I have written myself several Perl 5 modules (.pm). > >> Is there a way to call them from Perl6? Or s

[perl #127263] Cannot pass a Method object to .^can

2016-01-13 Thread via RT
# New Ticket Created by Dave Rolsky # Please include the string: [perl #127263] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127263 > If I do a get errors like: Method object coerced to string (please use .gist or .perl to

IRC channel (was: references and pointers jargon question)

2016-01-13 Thread Kaare Rasmussen
On 2016-01-14 06:39, ToddAndMargo wrote: I was on the IRC a few days back. I am a little bit unsure of what and how to use it. Seems like a bunch of one line questions and answers. It is. but the turn-around time is very low and the reply quality is very high. Also, you'll use nopaste for

Re: references and pointers jargon question

2016-01-13 Thread ToddAndMargo
> On Wed, Jan 13, 2016 at 5:36 PM, ToddAndMargo > wrote: > > Hi All, > > Just out of curiosity, is the word "Pointer" a "forbidden" word > in Perl 6 correspondences? Will using the two together "Reference > Pointer" get me in hot water? > > -T >

Re: references and pointers jargon question

2016-01-13 Thread Brent Laabs
Nothing is Forbidden! Everything is Permissible! Also it would make it hard to talk about "is repr('CPointer')" and the Pointer type in NativeCall. While underneath the hood Scalar containers have pointers to values, it's not a particularly useful view of Perl 6. It's more useful to use an OO o

references and pointers jargon question

2016-01-13 Thread ToddAndMargo
Hi All, Just out of curiosity, is the word "Pointer" a "forbidden" word in Perl 6 correspondences? Will using the two together "Reference Pointer" get me in hot water? -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread ToddAndMargo
On 01/13/2016 12:51 PM, David H. Adler wrote: On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them? https://doc.perl6.org/language/faq#Can_I_use_Perl_5

Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
On 01/12/2016 12:47 PM, Bruce Gray wrote: On Jan 11, 2016, at 6:55 PM, ToddAndMargo wrote: Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and /${BaseTag}/ ) { push ( @WebClickHere, $ClickLine

Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
On 01/12/2016 12:22 PM, Tobias Leich wrote: First of all, your fist line contains a bug, unless the topic variable ($_) is set to something meaningful. Because the regex after the 'and' matches against said topic. See: ~$ perl -E '$_ = "bar"; say ("foo" =~ /f+/ and /o/)' # "", so false ~$ perl -

Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread David H. Adler
On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: > Hi All, > > I have written myself several Perl 5 modules (.pm). > Is there a way to call them from Perl6? Or should I > must I rewrite them? https://doc.perl6.org/language/faq#Can_I_use_Perl_5_modules_from_Perl_6%3F dha -- David

Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread ToddAndMargo
Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them? Many thanks, -T

CPAN and LWP::UserAgent question?

2016-01-13 Thread ToddAndMargo
Hi All, I am thinking of starting the transition from Perl 5 to 6. The major CPAN modules I use in Perl 5 are: use Term::ANSIColor qw ( BOLD BLUE RED GREEN RESET ); use Term::ReadKey qw ( ReadKey ReadMode ); use Net::Nslookup qw ( nslookup ); use LWP::UserAgent; use LWP::Protocol qw ( https );

[perl #120638] Empty array reference in a loop leaks memory on rakudo-parrot

2016-01-13 Thread Christian Bartolomaeus via RT
On Tue Jan 12 06:35:56 2016, coke wrote: > [...] > > So, is this ticket closable? > > Yes, thanks. Great. I'm closing the ticket as 'resolved'.

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-13 Thread Luca Ferrari
On Tue, Jan 12, 2016 at 10:49 PM, Parrot Raiser <1parr...@gmail.com> wrote: > Looking at the documentation, http://doc.perl6.org/language/modules > see "Basic structure". One thing I get from the module example is about the 6 suffix in t

Re: thread problem

2016-01-13 Thread mt1957
On 01/13/2016 04:39 PM, Will Coleda wrote: Hi Will, First I must say that the code is still in development so it might look a bit messy. Now the test file uses the Client to get a MongoDB server using host and port info. This info can default to localhost and port 27017. The tests are using a

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-13 Thread Parrot Raiser
Agreed. Unfortunately, Windows thinks it needs to know.

Re: thread problem

2016-01-13 Thread Will Coleda
Can you post the code that causes the issue? On Wed, Jan 13, 2016 at 4:00 AM, mt1957 wrote: > L.s. > > I got the following error > > 'Tried to read() on a socket from outside its originating thread' > > This socket is created while in another thread using Promise and the object > is retrieved usi

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-13 Thread Kaare Rasmussen
But I don't know why they still suggest to use any specific suffix. It's of now interest or value to the user in which language the program is written. /kaare Looking at the documentation, http://doc.perl6.org/language/modules see "Basic structure". On 1/12/16, Parrot Raiser <1parr...@gmail.

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-13 Thread Tom Browder
On Tuesday, January 12, 2016, Parrot Raiser <1parr...@gmail.com> wrote: > Looking at the documentation, http://doc.perl6.org/language/modules > see "Basic structure". Thanks. That's definitive enough for me! -Tom

[perl #127256] type captures on subs are not lated bound when handed over to a role

2016-01-13 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #127256] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127256 > role R[::TT] {}; sub f(::T){ Any but R[T] }; dd f(R) # OUTPUT«Any+{R[T]}␤» # expect

Re: [perl #127254] Segmentation fault on recursive binding (my $x := (my $y := $x))

2016-01-13 Thread Nicholas Clark
Thanks for the report. On Tue, Jan 12, 2016 at 02:29:46PM -0800, Alex Jakimenko wrote: > Code: > my $x := (my $y := $x); > say $x.WHAT; > > Result: > Segmentation fault > > > Code: > my $x := (my $y := $x); > say $y.WHAT; # same for $y > > Result: > Segmentation fault > > > Code: > my $x :=

[perl #127255] framefail in EXPORT and an anonymous class

2016-01-13 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #127255] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127255 > # https://gist.github.com/gfldex/87e6af28194e5389a8f2 # the-lib.pm6 sub EXPORT() {

thread problem

2016-01-13 Thread mt1957
L.s. I got the following error 'Tried to read() on a socket from outside its originating thread' This socket is created while in another thread using Promise and the object is retrieved using $promise.result. The weird thing is also that just a few lines before that the same socket is used fo