Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 15:10, Fernando Santagata wrote: > > On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote: > > On 9 Aug 2022, at 13:53, Fernando Santagata > > wrote: > > > > Hello, > > > > I'm trying to uninstall old versions of

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Fernando Santagata
On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote: > > On 9 Aug 2022, at 13:53, Fernando Santagata > wrote: > > > > Hello, > > > > I'm trying to uninstall old versions of some modules; it looks like it's > working but in reality it isn'

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 13:53, Fernando Santagata wrote: > > Hello, > > I'm trying to uninstall old versions of some modules; it looks like it's > working but in reality it isn't. For example, but it's not limited to just > this module: > > $ zef l

I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Fernando Santagata
Hello, I'm trying to uninstall old versions of some modules; it looks like it's working but in reality it isn't. For example, but it's not limited to just this module: $ zef list --installed|grep CBOR ===> Found via /opt/rakudo-pkg/share/perl6/core ===> Found

Re: Raku modules in Gentoo's Portage

2020-12-01 Thread Brad Gilbert
installing at a time. So that would be one thing that a Gento specific subclass would change. On Tue, Dec 1, 2020 at 4:15 AM p.spek via perl6-users wrote: > Hi, fellow Rakoons, > > I've been looking into the creation of a Portage tree for Gentoo, to allow > installation of Raku mo

Raku modules in Gentoo's Portage

2020-12-01 Thread p.spek via perl6-users
Hi, fellow Rakoons, I've been looking into the creation of a Portage tree for Gentoo, to allow installation of Raku modules through the default package manager. There's currently two issues I need to iron out, and I have no clue how to fix either at this point. The first one deal

Re: Re-exporting modules that export operators...

2020-08-15 Thread Stuart Hungerford
On Sun, Aug 16, 2020 at 9:03 AM Ralph Mellor wrote: > The SO you quote includes an operator. So that's not the problem. > > The SO is written by jnthn. It doesn't get more authoritative than that. That's good to know, although for me the difference between it working and not working (with that e

Re: Re-exporting modules that export operators...

2020-08-15 Thread Ralph Mellor
AM Stuart Hungerford wrote: > > Hi, > > I'm using the technique described in this thread > https://stackoverflow.com/questions/61179586/use-haskell-like-prelude-modules-in-a-module-in-raku > to re-export module sub-trees in a project. One of these re-export > modules also export

Re-exporting modules that export operators...

2020-08-14 Thread Stuart Hungerford
Hi, I'm using the technique described in this thread https://stackoverflow.com/questions/61179586/use-haskell-like-prelude-modules-in-a-module-in-raku to re-export module sub-trees in a project. One of these re-export modules also exports an infix operator. The others only export classe

Re: My Windows Modules

2020-01-21 Thread ToddAndMargo via perl6-users
On 2020-01-21 00:58, Shlomi Fish wrote: Hi ITodd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: Hi All, I have my Win API modules to the point I like them now. I will be a few months before I get them up on GIT. You should already be using version control (git

Re: My Windows Modules

2020-01-21 Thread Shlomi Fish
Hi Todd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have my Win API modules to the point I > like them now. I will be a few months > before I get them up on GIT. > You should already be using version control (git, likely):

Re: My Windows Modules

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, I have my Win API modules to the point I like them now. I will be a few months before I get them up on GIT. If anyone wants to look at them now, I will vpaste.net them for you. :-) -T

Re: My Windows Modules

2020-01-08 Thread ToddAndMargo via perl6-users
Hi All, I have RegSetValueExW working now. It even creates keys when they don't exist. I have to catch up on other project for customers (and refill the coffers) that have been put on hold to get these modules programmed, so it will be at least a month away before I can get them up on G

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2020-01-03 12:56, Laurent Rosenfeld via perl6-users wrote: Hy Todd, why don't you use GitHub or GitLab? This is really a better solution for software source and revision control. Have a nice new year, Laurent. I am definitely thinking of it!

Re: My Windows Modules

2020-01-03 Thread Laurent Rosenfeld via perl6-users
argo via perl6-users wrote: > > Hi All, > > > > My latest three modules. two more in the works that use these: > > > > WinReg.pm6 > > WinMessageBox > > NativeConstants.pm6 > > > > WinReg.pm6 about killed me! > > > > -T > > > &

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2020-01-01 11:49, Veesh Goldman wrote: For the record: github is also searchable by google. Also, you could write blog posts, which are also searchable by google. I happen to read this list on my phone, and for some reason it gets super annoyed at very long posts, so I find these lengthy c

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2019-12-31 23:12, ToddAndMargo via perl6-users wrote: Hi All, My latest three modules.  two more in the works that use these: WinReg.pm6 WinMessageBox NativeConstants.pm6 WinReg.pm6 about killed me! -T Hi All, Anyone using this code, it is going through some major changes. When I get

Re: My Windows Modules

2020-01-01 Thread Veesh Goldman
ws API module, which is what this is targets at. > > > > > For someone who complains immediately if you are disrespected by having > > > your grammar corrected, you are remarkably disrespectful to everyone else. > > Okay. When I do this, please point it out so I can correct

Re: My Windows Modules

2020-01-01 Thread ToddAndMargo via perl6-users
 grammar corrected, you are remarkably disrespectful to everyone else. Okay. When I do this, please point it out so I can correct it. The work you have done getting these modules to work on Windows is great. Given the dominance of Windows in computing, your modules will almost certainly be

Re: My Windows Modules

2020-01-01 Thread Richard Hainsworth
Todd! Of what use are these module printouts? For someone who complains immediately if you are disrespected by having your grammar corrected, you are remarkably disrespectful to everyone else. The work you have done getting these modules to work on Windows is great. Given the dominance of

Re: My Windows Modules

2019-12-31 Thread ToddAndMargo via perl6-users
Hi All, My latest three modules. two more in the works that use these: WinReg.pm6 WinMessageBox NativeConstants.pm6 WinReg.pm6 about killed me! -T # unit module WinReg; # WinReg.pm6 #`{ Utilities to operate on the Windows registry perl6 -I. -c WinReg.pm6 Test one liner

global variables and modules question

2019-12-31 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to restrict variables, constants, enums and such declared in the global section of a module to only the module? Many thanks, -T -- ~ When we ask for advice, we are usually looking for an accomplice. -- C

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 18:47, ToddAndMargo via perl6-users wrote: On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are

My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are four of them. I have completed the windows popup module

Re: modules and subsets

2019-12-13 Thread Todd Chester via perl6-users
On 2019-12-13 01:06, Fernando Santagata wrote: our $pi is export = 4.13; Thank you!

Re: modules and subsets

2019-12-13 Thread Fernando Santagata
On Fri, Dec 13, 2019 at 6:48 AM Todd Chester via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-12 00:22, Fernando Santagata wrote: > > On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > > wrote: > > Can I export any other variable and constants the same way: >

Re: modules and subsets

2019-12-12 Thread Todd Chester via perl6-users
On 2019-12-12 00:22, Fernando Santagata wrote: On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > wrote: On 2019-12-11 10:22, Fernando Santagata wrote: > File test.pm6 > > unit module test; > subset PosInt of Int is export where * > 0; >

Re: modules and subsets

2019-12-12 Thread Fernando Santagata
On Thu, Dec 12, 2019 at 3:46 AM Todd Chester wrote: > On 2019-12-11 10:22, Fernando Santagata wrote: > > File test.pm6 > > > > unit module test; > > subset PosInt of Int is export where * > 0; > > > > > > File test.p6 > > > > use lib '.'; > > use test; > > sub mytest(PosInt $a) { say $a } > > myt

Re: modules and subsets

2019-12-11 Thread Todd Chester
On 2019-12-11 10:22, Fernando Santagata wrote: File test.pm6 unit module test; subset PosInt of Int is export where * > 0; File test.p6 use lib '.'; use test; sub mytest(PosInt $a) { say $a } mytest(1); # output: 1 mytest(-1);    # output Constraint type check failed in binding to par

Re: modules and subsets

2019-12-11 Thread Todd Chester via perl6-users
On 2019-12-11 10:16, Elizabeth Mattijsen wrote: $ 6 'subset A of Int; dd OUR::.keys' ("A",).Seq Hi Elizabeth, subset A of Int; dd OUR::.keys ("A",).Seq Nil Would you explain how your are using dd and what your are showing me here? Also how it ties into my original question as to if the ca

Re: modules and subsets

2019-12-11 Thread Todd Chester via perl6-users
On 2019-12-11 09:54, JJ Merelo wrote: By default, the scope of anything (containers, classes, whatever) is lexical to the scope they are in. Hi JJ, Thank you for responding. By the way, I'd be a Golden. I don't understand how you are using the word "lexical". I may be mixing Modula2 with

Re: modules and subsets

2019-12-11 Thread Fernando Santagata
File test.pm6 unit module test; subset PosInt of Int is export where * > 0; File test.p6 use lib '.'; use test; sub mytest(PosInt $a) { say $a } mytest(1); # output: 1 mytest(-1);# output Constraint type check failed in binding to parameter '$a'; expected test::PosInt but got Int (-1)

Re: modules and subsets

2019-12-11 Thread Elizabeth Mattijsen
$ 6 'subset A of Int; dd OUR::.keys' ("A",).Seq > On 11 Dec 2019, at 18:57, JJ Merelo wrote: > > > > El mié., 11 dic. 2019 a las 18:54, JJ Merelo () escribió: > Subsets follow pretty much the same rules as every other declared thing. > Change subset by "variable" or "class", if the answer is

Re: modules and subsets

2019-12-11 Thread JJ Merelo
El mié., 11 dic. 2019 a las 18:54, JJ Merelo () escribió: > Subsets follow pretty much the same rules as every other declared thing. > Change subset by "variable" or "class", if the answer is true, it's also > true for subsets. > > By default, the scope of anything (containers, classes, whatever)

Re: modules and subsets

2019-12-11 Thread JJ Merelo
Subsets follow pretty much the same rules as every other declared thing. Change subset by "variable" or "class", if the answer is true, it's also true for subsets. By default, the scope of anything (containers, classes, whatever) is lexical to the scope they are in. El mié., 11 dic. 2019 a las 18

modules and subsets

2019-12-11 Thread ToddAndMargo via perl6-users
Hi All, If I create a subset in the global section of a module (not inside a sub), can the subset be seen by the main program? Can a subset be declared on a sub's declaration line? (Hope springs eternal.) Many thanks, -T

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-05 23:39, ToddAndMargo via perl6-users wrote: Hi All, Its there a way, if you import a module that is also imports a bunch of constants into your main program to be used globally? If so, what is the syntax in the module and in the main program? And what happends if there is a name c

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2019-12-06 00:01, Tom Blackwood wrote: > Todd, > > AFAIK Perl’s culture is not to use so many constants in actual > programming. :) > > Tom > Is there a w

Re: modules and constants

2019-12-06 Thread Simon Proctor
If you define them in the top level of your module then all your subs have access : constant FOO = 2; sub inc-by-foo( $a ) { $a+FOO; } On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-06 00:01, Tom Blackwood wrote: > > Todd, > > > > AFAIK P

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 00:01, Tom Blackwood wrote: Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom Is there a way to make constants universal inside a module, or do I have to declare them inside every sub?

Re: modules and constants

2019-12-06 Thread Tom Blackwood
Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom On Fri, Dec 6, 2019 at 3:47 PM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > Its there a way, if you import a module that is also > imports a bunch of constants into your main pr

modules and constants

2019-12-05 Thread ToddAndMargo via perl6-users
Hi All, Its there a way, if you import a module that is also imports a bunch of constants into your main program to be used globally? If so, what is the syntax in the module and in the main program? And what happends if there is a name conflict between the module and main program? Many thanks,

lib for non-core, non-installed modules

2019-04-18 Thread mimosinnet
Dear perl6 community, I wonder what would be the right syntax for non-core, non-installed modules as discussed in StackOverflow? [1]. In other words, something similar to FindBin::libs in perl5. The solution I have come across is: use lib $*PROGRAM.dirname.IO.add('../lib');

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:48 AM, Timo Paulssen wrote: Please be aware that passing a folder with many files in it as the -I path will cause a tremendous slowdown when loading modules, since it goes through the whole file hierarchy starting at that path. If /home/linuxutil is actually a typical home

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:20 AM, JJ Merelo wrote: Since I haven't done this for a long time, let me remind you the possibility of posting, if you will, your questions _also_ in StackOverflow. You'll (possibly) get more answers (or just different ones), and will help spread the word about Perl 6 (which l

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
Please be aware that passing a folder with many files in it as the -I path will cause a tremendous slowdown when loading modules, since it goes through the whole file hierarchy starting at that path. If /home/linuxutil is actually a typical home folder with dotfiles and documents and what have you

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
rectory This does work, but what a lot of extra work: $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( "Blue\n" );' Blue What are the rules for calling modules from the command line? Many thanks, -T Follow up, with Timo's help. Note ke

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
; Could not open PrintBlue( "Blue" ). Failed to stat file: no such >> file or directory >> >> >> This does work, but what a lot of extra work: >> >> $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( >> "Blue\n" );&#

Re: I need the rules for running modules from the command line

2018-08-14 Thread JJ Merelo
en PrintBlue( "Blue" ). Failed to stat file: no such > > file or directory > > > > > > This does work, but what a lot of extra work: > > > > $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( > > "Blue\n" );' > > Blue > > > > > > > > What are the rules for calling modules from the command line? > > > > > > Many thanks, > > -T > -- JJ

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
gt; $ perl6 -MPrintColors 'PrintBlue( "Blue\n" );' > Could not open PrintBlue( "Blue" ). Failed to stat file: no such > file or directory > > > This does work, but what a lot of extra work: > > $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( > "Blue\n" );' > Blue > > > > What are the rules for calling modules from the command line? > > > Many thanks, > -T

I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
extra work: $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( "Blue\n" );' Blue What are the rules for calling modules from the command line? Many thanks, -T

Re: Security and modules question

2017-07-18 Thread Andrew Kirkpatrick
grams that are > used by the root account. I have been marking them > to root and 700 to keep other out. But it is occurring > to me, if the bad guys have access to my custom modules, > they could insert anything they want into it and have > root access. So, I have been setti

Security and modules question

2017-07-18 Thread Todd Chester
Hi All, I have been wondering about pl programs that are used by the root account. I have been marking them to root and 700 to keep other out. But it is occurring to me, if the bad guys have access to my custom modules, they could insert anything they want into it and have root access. So, I

Smoke testing Perl 6 Modules on Rakudo

2017-04-08 Thread Gabor Szabo
I wonder if this site is really out of date as the dates at the top indicate? http://smoke.perl6.org/report If so, is there working version of this report? Gabor

Re: Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
7 at 1:28 PM Chris Ramsey wrote: > > I've been googling a bunch but can't find diddly for creating ncurses > style interactive terminals in Perl 6. > > Sorry for such a vague question, but are there built-in modules for such a > thing, and if so, what is it called so I can dive through the docs? > > Thanks! > >

Re: Interactive terminal modules?

2017-03-28 Thread Lloyd Fournier
> Sorry for such a vague question, but are there built-in modules for such a > thing, and if so, what is it called so I can dive through the docs? > > Thanks! >

Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
I've been googling a bunch but can't find diddly for creating ncurses style interactive terminals in Perl 6. Sorry for such a vague question, but are there built-in modules for such a thing, and if so, what is it called so I can dive through the docs? Thanks!

Re: debugging modules

2017-03-16 Thread Timo Paulssen
On 03/16/2017 04:44 PM, Theo van den Heuvel wrote: > Earlier I tried using rakudobrew, before I learnt that that was > actually discouraged, > despite comments in doc/perlintro.pdf. I think I made a full clean-up. perl6intro.com, which is where the pdf is generated from, has been updated to no lon

Re: debugging modules

2017-03-16 Thread Theo van den Heuvel
have trouble getting rakudo to debug some of my own modules. merci, Theo Dominique Dumont schreef op 2017-03-16 16:21: On Friday, 10 March 2017 21:47:13 CET Theo van den Heuvel wrote: Strangely I do get messages like the following + EVAL_1 (1 - 1) | CompUnit::DependencySpecification.new(short

Re: debugging modules

2017-03-16 Thread Dominique Dumont
On Friday, 10 March 2017 21:47:13 CET Theo van den Heuvel wrote: > Strangely I do get messages like the following > > + EVAL_1 (1 - 1) > > | CompUnit::DependencySpecification.new(short-name => > > "Terminal::ANSIColor",... > > about some modul

Re: Fwd: Re: Variables in modules

2017-03-15 Thread Lloyd Fournier
Since $?FILE in modules is being discussed I'll just leave this RT here: https://rt.perl.org/Public/Bug/Display.html?id=128442 On Thu, Mar 16, 2017 at 4:50 AM JuhiMarcel LangbroekTimmerman < mt195...@gmail.com> wrote: > In the perl doc of IO, IO::Path etc. The type is $?File.IO.

Re: Fwd: Re: Variables in modules

2017-03-15 Thread JuhiMarcel LangbroekTimmerman
In the perl doc of IO, IO::Path etc. The type is $?File.IO.WHAT to search for. Or $?File.IO.^methods but that is only a list of methods. Marcel On March 13, 2017 23:29:15 ToddAndMargo wrote: On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue

Re: Fwd: Re: Variables in modules

2017-03-13 Thread ToddAndMargo
On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could something else be wrong here? cheers, Theo ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Pa

Re: Fwd: Re: Variables in modules

2017-03-13 Thread JuhiMarcel LangbroekTimmerman
now we are at it, for readability perhaps instead of substitutes do, my $thevalue = $?FILE.IO.basename; Marcel On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could some

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
Hm. How does it do with "sub sayfn" commented out? On 03/10/2017 04:02 PM, Theo van den Heuvel wrote: > Todd, > > Apparently I don't understand your intentions. You said you wanted > constants globally available in your module. > Don't you want to use those constants? If so, how? > On

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Theo van den Heuvel
Todd, Apparently I don't understand your intentions. You said you wanted constants globally available in your module. Don't you want to use those constants? If so, how? Hm. How does it do with "sub sayfn" commented out? -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module? Hi Timo, Because it gives you "Use of uninitialized value $TheValue" when yo

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Theo van den Heuvel
Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could something else be wrong here? cheers, Theo ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module? Hi Timo, Because it gives you "Use of uninitialized value $TheValue" when you go to use it inside one of the "is export

Re: debugging modules

2017-03-10 Thread Theo van den Heuvel
| CompUnit::DependencySpecification.new(short-name => "Terminal::ANSIColor",... about some modules (even some I wrote myself), but the interesting one is missing. Best, Theo Timo Paulssen schreef op 2017-03-10 16:41: Heyo, the way the debugger works is by changing the compiler to generate

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Timo Paulssen
I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module?

Re: debugging modules

2017-03-10 Thread Timo Paulssen
rce a full recompile of all used modules (transitively) in memory, but you can copy-paste the modules you're interested in into a "lib/" folder and just -Ilib on the commandline. just make sure to rm -rf lib/.precomp between runs, i think! hope that helps! - Timo

Re: debugging modules

2017-03-10 Thread Fernando Santagata
On Fri, Mar 10, 2017 at 1:41 PM, Theo van den Heuvel wrote: > Hi all, > > the debugger, Debugger::UI::CommandLine, does not step into modules I use. > I must be doing something wrong. Any ideas? > Same here. I can add that I couldn't find a way to add a breakpoint in a modu

debugging modules

2017-03-10 Thread Theo van den Heuvel
Hi all, the debugger, Debugger::UI::CommandLine, does not step into modules I use. I must be doing something wrong. Any ideas? I am on Ubuntu and using Rakudo version 2017.01 built on MoarVM version 2017.01 Thanks, -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Fwd: Re: Variables in modules

2017-03-09 Thread Todd Chester
On 03/09/2017 02:22 PM, Theo van den Heuvel wrote: Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; Hi Theo, Almost. I only want the code inside the module (pm) to see it. I don't want it exported. On the other hand, you just taught me h9owto

Fwd: Re: Variables in modules

2017-03-09 Thread Theo van den Heuvel
Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Variables in modules

2017-03-09 Thread ToddAndMargo
ding no way to initialize variables inside a pm module globally such that I don't have to constantly call the above sub over and over. Is there a way to set variables globally in pm modules or do I have to constantly create them inside my "is export&quo

Re: Variables in modules

2017-03-09 Thread Timo Paulssen
"my" variables are lexically scoped to the curly braces that contain them. That means that your $IAm is limited exactly to that init block. Also, =~ isn't in perl6. You can put "my $IAm" outside that block and assign to it inside the block, though. HTH - Timo

Variables in modules

2017-03-08 Thread ToddAndMargo
Hi All, I want to set a global variable in a module that I want all "is export" sub's to see when called. INIT { ( my $IAm =~ $?FILE ) ~~ s|.*"/"|| }; Does not work. Is there a way to do this, or do I have to create $IAm inside each "is export" sub? Many thanks, -T -- ~

Fedora and Modules

2017-01-14 Thread ToddAndMargo
Hi All, Fedora's Rakudo Star now comes without the modules or panda. https://bugzilla.redhat.com/show_bug.cgi?id=1410159 They were removed as of v7. Makes Perl 6 pretty useless. Tears, -T -- ~~ Computers are like air conditioners. They malfunction whe

Re: modules in windows?

2017-01-11 Thread Lloyd Fournier
The module installers I know of are: https://github.com/ugexe/zef https://github.com/tadzik/panda They should be able to do what you need :) On Thu, Jan 12, 2017 at 1:50 PM ToddAndMargo wrote: > Hi All, > > In Windows, other than writing for it and having it crash, how > do I tell if I have a

modules in windows?

2017-01-11 Thread ToddAndMargo
Hi All, In Windows, other than writing for it and having it crash, how do I tell if I have a module installed? I want this one, among others: https://github.com/araraloren/Net-FTP If I don't have the module, how do I install it? Many thanks, -T -- ~~ Comput

Re: can Perl 6 bootstrap itself (downloading modules and such via git)

2016-08-26 Thread Timo Paulssen
On 26/08/16 11:03, Andreas Mueller wrote: > on Windows i have to install git to download a Module > > maybe, one day there is a 'git' written in P6 > > > Andreas I think we should be able to grab modules without using git if we can rely on github and gitlab and w

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

2016-01-14 Thread Timo Paulssen
On 14/01/16 08:15, H.Merijn Brand wrote: Here's an example of ported DBI code: --8<--- #!perl6 use v6; use Inline::Perl5; my $p5 = Inline::Perl5.new; $p5.use("Text::CSV_XS"); my @rows; my $csv = $p5.invoke("Text::CSV_XS", "new") or die "Cannot use CSV: ", $p5.invoke("Text::CSV_XS", "erro

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

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). > >>

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

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

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

Re: [PSA] panda doesn't precompile modules anymore

2015-08-27 Thread Parrot Raiser
nager and a precompilation manager was a massive PITA. It's > been long agreed that precompiled modules are a cache > that should be managed by rakudo itself, just nobody got around to > implementing it yet :) > Hopefully now that everything in the wild will be slow it will raise &

[PSA] panda doesn't precompile modules anymore

2015-08-27 Thread Tadeusz Sośnierz
sound like a very bad idea, but I think it's necessary. Panda was never doing precompilation very well, and maintaining it as both module manager and a precompilation manager was a massive PITA. It's been long agreed that precompiled modules are a cache that should be managed by raku

Re: perl6 can't find installed modules, installed by panda

2015-04-27 Thread Timo Paulssen
5 05:44 PM, MT wrote: ls. Continuing story... I found out that the bootstrap.pl program used an environment variable DESTDIR which I have used now to place the installed modules outside of rakudo. I really don't know what the influence is on this but the modules are now installed like b

perl6 can't find installed modules, installed by panda

2015-04-24 Thread MT
ls. Continuing story... I found out that the bootstrap.pl program used an environment variable DESTDIR which I have used now to place the installed modules outside of rakudo. I really don't know what the influence is on this but the modules are now installed like before but the path n

perl6 can't find installed modules, installed by panda

2015-04-24 Thread MT
ls. I've installed the newest perl6 rakudo (2015.04-5-g59f57a8 built on MoarVM version 2015.04-3-gbb50941) and works fine except... I've also installed the panda module manager again which seems to work fine. It installs modules and shows them in the list. However, perl6 cannot

Re: Writing New Modules for Submission

2015-03-21 Thread Tobias Leich
: > > The guidance for the directory layout for a proposed module is very > clear for mandatory items, and two other directories are also > mentioned: bin and doc. > > What about other items such as a Makefile for developer use, > development test scripts and modules, and miscell

Writing New Modules for Submission

2015-03-21 Thread Tom Browder
The guidance for the directory layout for a proposed module is very clear for mandatory items, and two other directories are also mentioned: bin and doc. What about other items such as a Makefile for developer use, development test scripts and modules, and miscellaneous files found in CPAN Perl 5

Re: Debug core modules

2015-01-11 Thread Elizabeth Mattijsen
> On 11 Jan 2015, at 10:57, MAX PUX wrote: > is there a way to debug core modules like IO::Socket::INET? Generally, you can copy a module out of the core settings and run from source: the module in source will hide the one from the settings. Is that what you mean? Liz

Debug core modules

2015-01-11 Thread MAX PUX
Hi, is there a way to debug core modules like IO::Socket::INET? Thanks, Massimo

Re: Using precompiled modules, Assembling a project into one single file (pbc)

2011-06-17 Thread Patrick R. Michaud
On Fri, Jun 17, 2011 at 12:02:16PM +0200, Moritz Lenz wrote: > >Also, if you look at the (pir) code for any compiled script, > >it becomes clear that it uses some library called "perl6_ops". > >Does this mean that the file can not be run on a machine > >where you have installed parrot but have not

  1   2   >