Re: Helping Perl 6: a complete dev environment

2016-05-01 Thread Will Coleda
FYI, anything that claims to run parrot code is very out of date at this point. On Thu, Apr 28, 2016 at 7:52 PM, Jovan Trujillo wrote: > I see Padre has hooks for running Perl 6 and even parrot code. Don't know if > Git is built into it yet. Probably easier to get

[perl #127949] [JVM] Dying test in S02-literals/allomorphic.t when comparing ComplexStr with infix:

2016-05-01 Thread Pepe Schwarz via RT
On Sun May 01 08:04:06 2016, pesc...@gmail.com wrote: > On Thu Apr 21 12:34:10 2016, barto...@gmx.de wrote: > > On Thu Apr 21 11:53:14 2016, barto...@gmx.de wrote: > > > > > > $ perl6-j -e 'say < 8+9i >.re' > > > Attribute '$!re' is not a native num > > > in block at -e line 1 > > > > Oh, looks

[perl #127949] [JVM] Dying test in S02-literals/allomorphic.t when comparing ComplexStr with infix:

2016-05-01 Thread Pepe Schwarz via RT
On Thu Apr 21 12:34:10 2016, barto...@gmx.de wrote: > On Thu Apr 21 11:53:14 2016, barto...@gmx.de wrote: > > > > $ perl6-j -e 'say < 8+9i >.re' > > Attribute '$!re' is not a native num > > in block at -e line 1 > > Oh, looks like rakudo-j has other problems with the attributes of >

Re: [perl #128046] Rakudo hangs if you try to read $*IN when -n is used (perl6 -ne 'say get')

2016-05-01 Thread Brandon Allbery
On Sun, May 1, 2016 at 7:11 AM, Alex Jakimenko wrote: > Now, obviously, it is a little bit weird for the user to try to read from > $*IN when -n Not that weird. Let the loop read chunk headers, and read/process the rest of the chunk in the middle of the loop.

Re: DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread Moritz Lenz
On 01.05.2016 15:36, James E Keenan wrote: > > Thanks; that worked: > > # > cat dbiish_connect_dynamic_3.pl6 > #!/usr/bin/env perl6 > use DBIish; > > my $db = 'hierarchy'; > my $dbh = DBIish.connect("Pg", :database($db)); Another nice little language feature is that you can reuse the name

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Fernando Santagata
Thanks, I'll try that! On May 1, 2016 15:31, "Tadeusz Sośnierz" wrote: > To expand on why putting the file in a directory doesn't Just Work, and > why so much magic needs to be there for it to work: loading modules is a > complicated thing in Perl 6, and long story

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Tadeusz Sośnierz
Starting from the end: there's no need to use github, panda can install stuff just fine from a local directory :) As for the directory layout, https://github.com/rakudo/rakudo/blob/nom/docs/module_management.md is probably the best source to learn how it works under the hood. Hope this helps,

Re: DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread James E Keenan
On 05/01/2016 09:12 AM, Mathieu Gagnonn wrote: Hello James, You can try :database($db) Look at this http://design.perl6.org/S02.html#Adverbial_Pair_forms I've found it very useful! James E Keenan writes: Yesterday I made my first attempt at using any library in a Perl6 program --

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Fernando Santagata
Yes, that works too. But I was just trying to understand how the directory layout works. In particular I was trying to reproduce what panda does, since I didn't want to use github.com just to install a test module. I found no documentation about this, so I tried this mailing list. On May 1, 2016

Re: DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread Brock Wilcox
Right - use parenthesis in colon-pair parameters to get the variable inside. You could use :database<<$db>> to make it like a double-quoted string. Or my favorite is to use regular => as in database => $db --Brock On May 1, 2016 09:13, "Mathieu Gagnonn" wrote: Hello James,

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Tadeusz Sośnierz
To expand on why putting the file in a directory doesn't Just Work, and why so much magic needs to be there for it to work: loading modules is a complicated thing in Perl 6, and long story short, if you want to be able to have multiple versions installed and loadable at the same time, you need

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Brock Wilcox
I recommend putting your module into a 'lib' dir near your script. Then in your script add: use lib 'lib'; That way you don't have to add the -l param. On May 1, 2016 09:21, "Fernando Santagata" wrote: > Hello, > > I'm trying to write a module and make a program

Where do I need to put a pm6 file?

2016-05-01 Thread Fernando Santagata
Hello, I'm trying to write a module and make a program load and use it. Since this code: perl6 -e 'say $*REPO' outputs: inst#/home/nando/.perl6 I thought that putting the .pm6 file in there would be enough. So, since my module is A::B, I put B.pm6 into ~/.perl6/A . But when I run a test

Re: DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread Mathieu Gagnonn
Hello James, You can try :database($db) Look at this http://design.perl6.org/S02.html#Adverbial_Pair_forms I've found it very useful! James E Keenan writes: > Yesterday I made my first attempt at using any library in a Perl6 > program -- specifically, DBIish. > > The following succeeded in

DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread James E Keenan
Yesterday I made my first attempt at using any library in a Perl6 program -- specifically, DBIish. The following succeeded in establishing a connection to a Postgresql database named 'hierarchy' on the same disk as Perl6: # $ cat dbiish_connect.pl6 #!/usr/bin/env perl6 use DBIish; my

[perl #128048] Need command-line tool for reading embedded documentation

2016-05-01 Thread via RT
# New Ticket Created by James E Keenan # Please include the string: [perl #128048] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128048 > One of the joys of Perl 5 is that at the command-line I can issue a command like:

Re: [perl #128036] Bug filling hash using $_

2016-05-01 Thread Marcel Timmerman
Hi, Thanks for the explanation, sorry for creating the bug entry. regards, Marcel On May 1, 2016 1:28:58 PM "Sam S. via RT" wrote: PS: Or if you don't like the `hash` keyword, you can use the %( ) contextualizer which does the same thing: my Hash $h = %(

[perl #128047] Rakudo may crash if you use get() when -n is used (perl6 -ne 'say get' <<< 'hello')

2016-05-01 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #128047] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128047 > This bug report is somewhat related to

[perl #128046] Rakudo hangs if you try to read $*IN when -n is used (perl6 -ne 'say get')

2016-05-01 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #128046] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128046 > So, in this bug report we will be attempting to read $*IN when we are already reading

Re: [perl #128045] [LHF] Rakudo mentions non-existent .ins method when attempting to use $. variable ( say $. )

2016-05-01 Thread Elizabeth Mattijsen
Fixed with 1e54c52 , not sure whether tests are needed. > On 01 May 2016, at 11:48, Alex Jakimenko (via RT) > wrote: > > # New Ticket Created by Alex Jakimenko > # Please include the string: [perl #128045] > # in the subject line of all future correspondence

[perl #128045] [LHF] Rakudo mentions non-existent .ins method when attempting to use $. variable ( say $. )

2016-05-01 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #128045] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128045 > Code: say $. Result: ===SORRY!=== Error while compiling -e Unsupported use of $.

Re: [perl #128038] [BUG] Something is handling the Failure from a .substr in Rakudo

2016-05-01 Thread Elizabeth Mattijsen
Fixed with b61ca12 , tests needed. > On 30 Apr 2016, at 18:11, Elizabeth Mattijsen wrote: > >> On 30 Apr 2016, at 17:00, Carl Mäsak (via RT) >> wrote: >> >> # New Ticket Created by "Carl Mäsak" >> # Please include the string: [perl #128038]