Re: need help with zef error

2018-06-14 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I just tried this myself: tyil@bast:~ ยป zef install IO::Socket::SSL ===> Searching for: IO::Socket::SSL ===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan.json ===> Updated p6c mirror:

Re: Is there a built in recursive rmdir and mkdir?

2018-06-03 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Sun, 3 Jun 2018 13:13:31 -0700 ToddAndMargo wrote: > Does Perl 6 have a built in recursive rmdir > equivalent to LINUX's `rmdir --parents path`? For this, there's `rmtree` in the `File::Directory::Tree` module. It is referenced in the docs:

Re: <> question

2018-06-03 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 The < > syntax is a bit like qw<> from Perl 5. You'll get a List (or Array, not sure which type exactly from it. So is a list with two elements, "myfile1" and "myfile2". If you want to use a variable, you can just provide it with one or more

Re: need second pair of eyes

2018-06-03 Thread Patrick Spek via perl6-users
I > >>> > >>> perl6 -I. -MRunNoShell '( my $a, my $b ) = RunNoShell("ls > >>> \*.pm6"); say $a;' Could not open ( my $a, my $b ) = > >>> RunNoShell("ls \*.pm6"); say $a;. Failed to stat file: no such > >>> file o

Re: need second pair of eyes

2018-06-03 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 You're missing `-e` here, it should be perl6 -I. -MRunNoShell -e '( my $a, my $b ) = RunNoShell("ls \*.pm6"); For further clarification, the `.` after `-I` indicates the directory that is being added to the paths Perl 6 checks for libraries

Re: need second pair of eyes

2018-06-03 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 No problem! To be precise, -e can be easily remembered from "evaluate" (which I think is also what it actually stands for). On Sun, 3 Jun 2018 16:08:04 -0700 ToddAndMargo wrote: > On 06/03/2018 03:57 PM, Patrick Spek via perl

Re: How to print colorized text to the terminal

2018-06-03 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 In proper Perl fashion, there's a module for this: https://github.com/tadzik/Terminal-ANSIColor I haven't used it myself, so I'm not sure how well it works, but it's worth a shot at least. On Sun, 3 Jun 2018 20:41:32 -0400 Xin Cheng wrote: > Hi,

Re: return code?

2018-07-29 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I'd gladly help you get your first module published. First off, you'll need to have a META6.json describing which files your module will provide, and which dependencies it needs. You always will need this json file, even if you have no

Re: return code?

2018-07-29 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I get the idea that you're trying to get a list of lines with the @ReturnAry = split "\n", qqx ( curl $TimeOutStr -L $Url -o $FileName; echo \$\? ); You can use the lines[1] sub for exactly this. Similarly for this line for

Re: start up delay?

2018-08-06 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 If you're writing a runnable script in Perl 6, I would recommend to *always* use a MAIN sub[1]. If you're using that, you can easily achieve the precompilation as well, with 1 line of code less. You'd have your code in lib/Your/Program/Main.pm6:

A grammar to provide substitution

2018-08-28 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi all, I'm trying to substitute parts of a string, and thought this might be a good use of a grammar. Sadly, grammars aren't my strong suit, so I thought I'd ask the wider community for help. Maybe you guys know an even better solution than using

Re: A grammar to provide substitution

2018-08-29 Thread Patrick Spek via perl6-users
gt; #`(Sub|214745424) ... } > > my %substitutes = '$(placeholder)' => > > "placeholder", '$(purpose)' => "testing"; > {$(placeholder) => > > placeholder, $(purpose) => testing} > > my $output = > > format-string($input, %substitutes); &g

Re: Bailador vs. Cro

2018-07-09 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I've only done some very basic stuff with both Cro and Bailador. From what I can tell, Cro requires less code to get something going in, but Bailador is easier to get a regular MVC model working in. Have you read through the Cro SPA tutorial?

Re: Perl6 use cases

2018-11-04 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, I've been using Perl 6 in my personal projects to create an IRC bot (using IRC::Client), a number of modules, and currently trying to set up a new mail environment with a management API built with Cro. At work, I've used Perl 6 to deal with

Re: Installing Perl6 on shared server

2018-09-26 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Wed, 26 Sep 2018 11:20:49 +0800 Richard Hainsworth wrote: > a) Is there a rakudo package for debian Stretch I can install? (I'm > just asking, but I doubt it). https://github.com/nxadm/rakudo-pkg/releases I believe Stretch is Debian 9, so you

Re: filever.exe sub?

2019-01-30 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 A quick search yields me the program `pev`: http://pev.sourceforge.net/doc/manual/en_us/ Maybe this can help you out. If it performs the tasks you need it to perform, you could browse the source code and rewrite it into a Perl 6 project :) On Tue,

Re: LogP6 not working as I expect

2019-05-10 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Aha! That works for me! I don't particularly need it to be a constant, I just used constants before to make sigil-less variables. I generally don't use `my \foo` because I don't like how instantiation and use differ (one uses the `\` sigil, which

LogP6 not working as I expect

2019-05-10 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all, I'm trying to use LogP6 in one of my projects, but it's not working the way I was expecting it to work. Presumably I'm overlooking something simple, but I can't seem to figure out what or why. I have the following code: use

Re: perl6-regex: retaining $/.pos after an unsuccesful match without a temporary variable?

2019-08-19 Thread Patrick Spek via perl6-users
On Sun, 18 Aug 2019 13:45:27 -0300 Aureliano Guedes wrote: > Even being another language, Perl6 should be inheriting Perl5's > regexes or even improving it not making it uglier and harder. > > Or I'm seeing how to use it in an easy way. Also, dunno if there is > some GOOD documentation to Perl6

Rakudo Star 2019.07

2019-09-03 Thread Patrick Spek via perl6-users
Hi everyone, I'm using Rakudo Star to get Perl 6 on my machines. However, it seems that the latest release is 2019.03, which is half a year old by now. Is anyone working on a 2019.07 (or different number) release right now, or are there currently no maintainers for it? If it's the latter, can

Re: Rakudo Star 2019.07

2019-09-03 Thread Patrick Spek via perl6-users
No, that's Rakudo (the compiler), not Rakudo Star (the Perl 6 distribution). On Tue, 3 Sep 2019 03:54:37 -0700 ToddAndMargo via perl6-users wrote: > On 9/3/19 12:03 AM, Patrick Spek via perl6-users wrote: > > Hi everyone, > > > > I'm using Rakudo Star to get Perl 6 on

Re: while(<>){...} analog?

2019-07-29 Thread Patrick Spek via perl6-users
In Perl 6, you also don't need to explicitly use $_ in this case if you use the method form of say. for lines() { .say } On Sun, 28 Jul 2019 23:13:08 -0700 Joseph Brenner wrote: > [...] > > The perl6 version would be something like: > > #!/usr/bin/env perl6 > use v6; >

Re: perl6 for web development

2019-09-30 Thread Patrick Spek via perl6-users
It's a library for making a web application. One could also make a framework out of it, if they wished to do so. Jonathan has made this distinction in the past, referring to Cro as a library explicitly, as opposed to a framework, as a framework is (usually) highly opinionated. Cro is not. That

Re: Rakudo Star 2019.07.1

2019-11-06 Thread Patrick Spek via perl6-users
The problem is clearly with the Linenoise module, I'll have to look into that and see if it's something I can fix. The path name you see is "an implementation detail" of Zef, I've been told before. I have no clue how it actually calculates them, and no idea where to find any documentation on

Re: Rakudo Star 2019.07.1

2019-11-06 Thread Patrick Spek via perl6-users
Ah, that has been a mistake on my part, apologies. I can use a more "correct" naming scheme in the future. Are there any rules besides this one that release names should adhere to? I'll write up a document about it so I have it documented, and other people know what to expect as well. On Wed, 6

Rakudo Star 2019.07.1

2019-11-05 Thread Patrick Spek via perl6-users
Hello everyone, I've seen people ask about 2019.07.1 in multiple avenues, myself included. Since there was little response, I've set out to build it myself. The first results have been made, with a PR on the Rakudo Star repository to fix a number of issues. Additionally, I've uploaded the

Re: split to walk into an HoH ?

2019-11-22 Thread Patrick Spek via perl6-users
Could you post some input and expected output? That would make it easier for me (and perhaps others) to see what exactly you're trying to accomplish, in practical terms. On Fri, 22 Nov 2019 14:39:33 +0100 Marc Chantreux wrote: > hello people, > > removing shell scripts is a good way to learn

Re: Rakudo Star v2020.01

2020-03-03 Thread Patrick Spek via perl6-users
On Tue, 3 Mar 2020 16:41:47 -0500 Parrot Raiser <1parr...@gmail.com> wrote: > I've managed to download 2020.01, and run it with an explicit path, > but the directory structure that my script used to follow, is broken > in some way. (I'll investigate further, to see if I can spot the > change,

Rakudo Star v2020.01

2020-02-19 Thread Patrick Spek via perl6-users
Hi everyone! Just now I've sent an announcement to perl6-compil...@perl.org, to notify people that I've made a first non-rc release of Rakudo Star. For those of you that use Rakudo Star, this may be a good time to try out the latest version! The files are available from https://dist.tyil.nl: -

Re: rakudo.org outdated?

2020-01-09 Thread Patrick Spek via perl6-users
On Mon, 6 Jan 2020 11:38:01 -0800 Darren Duncan wrote: > On 2020-01-06 1:18 a.m., Patrick Spek via perl6-users wrote: > > On Sun, 5 Jan 2020 18:27:01 -0800 Darren Duncan wrote: > > > >> The normal Rakudo Star releases so far are compiled, [...] > > &g

Re: rakudo.org outdated?

2020-01-13 Thread Patrick Spek via perl6-users
On Sun, 12 Jan 2020 13:59:43 -0800 yary wrote: > I downloaded the Rakudo Star 2019.11-rc1 source installer from > https://dist.tyil.nl/raku/rakudo-star/ and built it on OS X 10.15.2 > "Catalina", rakudo-test complains about Native Call, and also that a > couple TODO's pass > > *Test Summary

Fw: [perl-foundation-outreach] Applications open tomorrow

2020-01-13 Thread Patrick Spek via perl6-users
Anyone with ideas for the Google Summer of Code, please share them! If you don't have a GitHub account (or don't want to do the effort of getting a PR merged), you can share them on the ML or in private mail, and I'll do my best to get them on the GitHub repository. Begin forwarded message: On

Re: rakudo.org outdated?

2020-01-03 Thread Patrick Spek via perl6-users
On Fri, 3 Jan 2020 14:21:14 +0100 Marc Chantreux wrote: > hello people, > > i read an annoncement for rakudo 2019.11 > and the last github release confirms that. > > so i started to update the guix package > before discovering that the rakudo.org page > still points to 2019.03. > > is there a

Re: Stack Exchange

2019-12-23 Thread Patrick Spek via perl6-users
On Sun, 22 Dec 2019 14:51:52 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have posted a few times to Stack Exchange. There is a > lot of intellectual property over there. This I do like. > > What I do not like, is that it is hard to carry on a > conversation do their their

Re: Working at FOSDEM

2020-01-04 Thread Patrick Spek via perl6-users
On Fri, 3 Jan 2020 15:43:23 +0100 Andrew Shitov wrote: > Hi, > > On 1-2 Feb, I have secured a table at the FOSDEM exhibition area. > Unfortunately, I found nobody who confirmed they can help at the > location for at least 1/2 day. What needs to be done there is to talk > to people passing by

Re: rakudo.org outdated?

2020-01-04 Thread Patrick Spek via perl6-users
On Fri, 3 Jan 2020 23:28:38 +0100 Laurent Rosenfeld via perl6-users wrote: > Hi Patrick, > > I'm sure you have plenty of things to do and I don't want to put too > much pressure on you, but it would be really nice to have a good and > more recent Rakudo Star version available, especially in

Re: rakudo.org outdated?

2020-01-04 Thread Patrick Spek via perl6-users
On Sat, 4 Jan 2020 15:43:37 -0800 Darren Duncan wrote: > Isn't there typically automated test suites that can prove in a few > minutes that Rakudo works on a particular platform? Would running > this typically be good enough to show that nothing broke in an > update? -- Darren Duncan I wrote

Re: rakudo.org outdated?

2020-01-05 Thread Patrick Spek via perl6-users
On Sat, 4 Jan 2020 22:23:30 -0800 Darren Duncan wrote: > Last I recall, there was no Mac installer for Rakudo Star at all, nor > was there any need for one. The compiled project is simply in a zip > file which the end-uaer unzips and then the resulting folder is ready > to use as is. Don't

Re: rakudo.org outdated?

2020-01-06 Thread Patrick Spek via perl6-users
On Sun, 5 Jan 2020 18:27:01 -0800 Darren Duncan wrote: > The normal Rakudo Star releases so far are compiled, [...] For Mac and Windows, perhaps, but the release is similar as it always was for GNU+Linux. And I'm mostly aiming for that since that's what I use (and also what I can test). Hence,

Re: How to process command line options

2020-01-06 Thread Patrick Spek via perl6-users
On Sun, 5 Jan 2020 22:32:02 + David Santiago wrote: > Hello. > > I'm following > https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still > haven't figured it out how do i use a constraint in a named parameter > when processing a command line. > > I have this piece of code: >