Re: can't match unicode chars?

2018-07-31 Thread Todd Chester
On 07/31/2018 12:28 PM, Marc Chantreux wrote: hello people, given the slides of my talk in the slides.vim format (https://github.com/eiro/slides.vim), i want some of them to be shown one bullet a slide. so when i have this input: › Renater et le libre  Sympa  FileSe

Re: -c bug to report

2018-07-25 Thread Todd Chester
On 07/25/2018 12:23 PM, Brandon Allbery wrote: here's been discussion about having -c run the optimize stage as well, since some information needed for full checking doesn't exist in a useful form until then. I like the idea!

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread Todd Chester
<mailto:toddandma...@zoho.com>> wrote: > On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester mailto:toddandma...@zoho.com>> wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >>

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Todd Chester
> On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >> $ perl6 -v >> This is Rakudo version 2018.05 built on MoarVM version 2018.05 >> implementing Perl 6.c

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:58 AM, Brandon Allbery wrote: A pipe is for communication with a process. "Piped to a file" means what? What's the process you're communicating with? More to the point, "run" is intended to be lower level, specifically so you can directly control things. Things like redirec

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:15 AM, Theo van den Heuvel wrote: Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't  understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file directl

Re: a `pe4rl6 -c` error to fix

2018-06-19 Thread Todd Chester
On 06/19/2018 09:50 PM, Todd Chester wrote: Dear Perl Developers, Would you please fix this `perl6 -c` checker error? $ perl6 -v This is Rakudo version 2018.05 built on MoarVM version 2018.05 implementing Perl 6.c. The checkers passes this line with Syntax OK $ReturnStr, $CurlStatus

a `pe4rl6 -c` error to fix

2018-06-19 Thread Todd Chester
Dear Perl Developers, Would you please fix this `perl6 -c` checker error? $ perl6 -v This is Rakudo version 2018.05 built on MoarVM version 2018.05 implementing Perl 6.c. The checkers passes this line with Syntax OK $ReturnStr, $CurlStatus = CurlDownloadFile $FileAddr, $BaseFileName, %M

need help with zef error

2018-06-13 Thread Todd Chester
$ /opt/rakudo-pkg/bin/zef install IO::Socket::SSL ===> Searching for: IO::Socket::SSL ===> Searching for missing dependencies: OpenSSL ===> Fetching [FAIL]: IO::Socket::SSL:ver('0.0.1'):auth('github:sergot') from git://github.com/sergot/io-socket-ssl.git Aborting due to fetch failure: IO::Socket

Re: -c error to fix

2018-06-13 Thread Todd Chester
On 06/13/2018 11:28 PM, Todd Chester wrote: Hi All, $ perl6 -v This is Rakudo version 2018.04 built on MoarVM version 2018.04.1 implementing Perl 6.c. I have another `perl6 -c` bug to fix $ perl6 -c GetUpdates.pl6 ===SORRY!=== Could not find Term::termios at line 15 in:     /home

-c error to fix

2018-06-13 Thread Todd Chester
Hi All, $ perl6 -v This is Rakudo version 2018.04 built on MoarVM version 2018.04.1 implementing Perl 6.c. I have another `perl6 -c` bug to fix $ perl6 -c GetUpdates.pl6 ===SORRY!=== Could not find Term::termios at line 15 in: /home/linuxutil /home/todd/.perl6 /usr/lib64/perl6/site

Re: EVAL?

2018-06-13 Thread Todd Chester
On 06/13/2018 12:27 PM, Brandon Allbery wrote: use MONKEY-SEE-NO-EVAL; Thank you. Someone had fun with that name! Do I presume there is not other way around the issue?

Re: EVAL?

2018-06-13 Thread Todd Chester
On Wed, 13 Jun 2018 15:23:56 -0700 yary wrote > Pet peeve, "$RunSpecific" with the quotes on either side is exactly the same as $RunSpecific without the quotes. Perl isn't shell. > > -y Hi Yary, Chuckle. Missed one. What?? Or two or three ... This program that I have been co

Re: Need match character help

2018-05-16 Thread Todd Chester
Now I am getting silly. How would I exclude the phrase "gm"? $ p6 'if "def" ~~ /^<[d..z]-["gm"]>*$/ {say "y"} else {say "n"}' Potential difficulties: Quotes are not metacharacters in character classes at -e:1 --> if "def" ~~ /^<[d..z]-⏏["gm"]>*$/ {say "y"} else {say "n"} Repe

Re: Need match character help

2018-05-16 Thread Todd Chester
On Wed, May 16, 2018 at 9:05 PM, Todd Chester <mailto:toddandma...@zoho.com>> wrote: On 05/16/2018 07:58 AM, Timo Paulssen wrote: On 16/05/18 00:10, ToddAndMargo wrote: What would the syntax be for d..z, but not g or m? You can subtract [gm] from [d

Re: Need match character help

2018-05-16 Thread Todd Chester
On 05/16/2018 07:58 AM, Timo Paulssen wrote: On 16/05/18 00:10, ToddAndMargo wrote: What would the syntax be for d..z, but not g or m? You can subtract [gm] from [d..z] like this:     say "c" ~~ /<[d..z]-[gm]>/;     say "d" ~~ /<[d..z]-[gm]>/;     say "f" ~~ /<[d..z]-[gm]>/;     say "g"

Re: A s/// brain teaser to share

2018-05-04 Thread Todd Chester
On 05/03/2018 10:52 PM, yary wrote: What you really want is to change a quote to "inch" if the quote is not at the start of the line, not preceeded by a comma, not followed by a comma, and not at the end of a line. $LabelStr ~~ s:global|"3/4\""|3/4 inch|; But that will only fix inch when it

Re: OT: creating an icon on the task bar

2018-05-04 Thread Todd Chester
On Thu, May 3, 2018 at 8:55 PM, Todd Chester <mailto:toddandma...@zoho.com>> wrote: Hi All, But only a little bit off topic. Windows 7 Pro, SP1, 32 bit I created a Perl6 program for a customer. I created a shortcut to it on the desktop. But Windows won't

OT: creating an icon on the task bar

2018-05-03 Thread Todd Chester
Hi All, But only a little bit off topic. Windows 7 Pro, SP1, 32 bit I created a Perl6 program for a customer. I created a shortcut to it on the desktop. But Windows won't allow me to to copy it to the task bar as perl6 is a batch file. Looking at google, the trick of creating cmd /

need <-[x]> help

2018-05-03 Thread Todd Chester
Hi All, What I am trying to do is to replace a quote `"` with `inches`, but NOT when the quote is followed by a comma `,`. In other words, ignore `",` I am not having too good a time with it. What am I doing wrong? $ perl6 -e 'my $x=qw["44","7" ab","","999"]; say "$x";$x~~s:g/\"(.)<-[,]>/ in

Re: zef install Linenoise: Use of Nil in string context, (Linenoise) line 15

2018-04-25 Thread Todd Chester
On 04/24/2018 11:30 AM, mimosinnet wrote: This message appears when installing Linenoise <--- $ zef install Linenoise ===> Installing: Linenoise:ver<0.1.1>:auth Use of Nil in string context  in block  at home#sources/0BDF8C54D33921FEA066491D8D13C96A7CB144B9 (Linenoise) line 15 ---> The above

Re: how do I match the next two characters?

2018-01-18 Thread Todd Chester
On 01/18/2018 05:17 PM, mimosinnet wrote: The '?' is not necessary Indeed! I use `.*?` when I do not want the wild card to be "greedy" When I have a choice of using either, I always use `.*?` so I remember the difference and as a kind of comment that tells me not to be greedy. Thank you!

Re: how do I match the next two characters?

2018-01-16 Thread Todd Chester
On 01/16/2018 12:57 AM, Elizabeth Mattijsen wrote: On 16 Jan 2018, at 09:46, ToddAndMargo wrote: I want to match the next two character (don't care what they are) in the following I will use ?? for the next two character, but that doesn't work $x ~~ m/.*?(sd??).*/; I want $0 to include the

Re: p6 for w32

2017-11-30 Thread Todd Chester
On 30 November 2017 at 05:09, Todd Chester wrote: Hi All, Anyone know of a better download site for Perl 6 for Windows 7, SP1, 32 bit (not 64) than? http://rakudo.org/how-to-get-rakudo/ The 32 bit version is two years old. Many thanks, -T On 11/30/2017 01:50 AM, Steve Mynott wrote

p6 for w32

2017-11-29 Thread Todd Chester
Hi All, Anyone know of a better download site for Perl 6 for Windows 7, SP1, 32 bit (not 64) than? http://rakudo.org/how-to-get-rakudo/ The 32 bit version is two years old. Many thanks, -T

Anyone want me eMail and download interface for curl?

2017-11-03 Thread Todd Chester
Hi All, Without going into the reasons why, I was forced to write a module that interfaces curl for Perl 6. The module will 1) download a web page 2) download a file from the web and will properly follow redirects 3) will create proper eMail headers and send an eMail. It will auto sense h

Tip: how to each individual leading space in a line

2017-11-01 Thread Todd Chester
Hi All, wander_ over on the chat line helped me figure out a vexing problem. I needed to replace each individual leading space in a line. Not remove all the leading white space or replace it with a single character. Each space had to be replaced with a sequence of characters and leave the spac

Re: <<>> question

2017-10-04 Thread Todd Chester
On 10/04/2017 08:20 PM, Todd Chester wrote: So in this context "{$x}" means insert (interpolate) a variable into the list?  I was thinking it meant to insert a variable into a string.  Did saying <<>> automatically tell Perl6 that this was a list and not a sting? is

Re: <<>> question

2017-10-04 Thread Todd Chester
On 10/04/2017 12:48 PM, Andy Bach wrote: > I think maybe I don't understand how <<>> is used in a and how <<>> differs from a "" <<>> is quoteword, no commas needed. You get back a list.  "" create a string, you get back a single thing. my $z=<>; (xyz abc def) is the same as my $z=<>; (xy

Re: bash and pm6 question

2017-09-21 Thread Todd Chester
On 09/21/2017 01:19 AM, Shlomi Fish wrote: Hi Todd, On Wed, 20 Sep 2017 23:22:41 -0700 ToddAndMargo wrote: Hi All, Can I call a pm6 directly from bash or do I need to call a pl6 that calls the pm6? why not use "perl6 -e"? Regards, Shlomi perl6 -e'use MyPm6; ... ?

Re: what am I doing wrong here?

2017-09-14 Thread Todd Chester
On 09/14/2017 09:10 AM, Timo Paulssen wrote: You're reaching deep into rakudo's internals here, reaching an object that doesn't know about pretty much any methods you might want to have, and there's also no support for them in things like the ~~ operator, for example. You're getting the error

how do you pipe to perl6?

2017-08-04 Thread Todd Chester
Hi All, In Linux, how do I things to a perl6 one liner? I want to send ip -o -f inet addr show | perl6 ***dig out the netmask on eno1*** I know how to dig out the net mask, I just don't how to pipe to the command. Many thanks, -T

Need sub for `LWP::UserAgent`

2017-07-27 Thread Todd Chester
Hi All, I am trying to convert a p5 program to p6. What do I use in place of `LWP::UserAgent`? I use it for downloading files from the web. I need to be able to pass the following to the web page: Caller Host UserAgent Referer Cookies This is the p5 code I want to convert:

Re: Announce: Rakudo Star Release 2017.07

2017-07-25 Thread Todd Chester
On 07/25/2017 12:30 AM, Elizabeth Mattijsen wrote: What do you mean by “the full Rakudo” ? Rakudo Star is the Rakudo compiler release with a set of useful modules added (“batteries included”). https://rakudo.perl6.org/downloads/star/ vs https://rakudo.perl6.org/downloads/rakudo/ A

Re: Is win 32 being worked on?

2017-07-21 Thread Todd Chester
On 07/21/2017 01:57 AM, Mark Carter wrote: On 21/07/2017 09:50, Todd Chester wrote: I may be wrong, but I do believe what you want is called "Rakudo Star". You can download it from https://rakudo.perl6.org/downloads/star/ But no recent win 32-bit. https://rakudo.perl6.org

Re: Is win 32 being worked on?

2017-07-21 Thread Todd Chester
On 07/21/2017 01:07 AM, Mark Carter wrote: I noticed that there is no Windows 32-bit version of rakudo, and it won't even compile on cygwin. Are there plans for fixing this? Hi Mark, I may be wrong, but I do believe what you want is called "Rakudo Star". You can download it from https:/

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 h

Re: parameters from the command line: how do they do that?

2017-06-21 Thread Todd Chester
On 06/21/2017 10:26 PM, Brandon Allbery wrote: On Thu, Jun 22, 2017 at 1:18 AM, Todd Chester mailto:toddandma...@zoho.com>> wrote: > On 22/06/17 14:49, Todd Chester wrote: >> I know how to read things on the command line. But >> how to other's figure o

Re: parameters from the command line: how do they do that?

2017-06-21 Thread Todd Chester
> On 22/06/17 14:49, Todd Chester wrote: >> Hi All, >> >> I know how to read things on the command line. But >> how to other's figure out what goes together when things >> don't arrive in order? >> >> For instance, from "man grep"

parameters from the command line: how do they do that?

2017-06-21 Thread Todd Chester
Hi All, I know how to read things on the command line. But how to other's figure out what goes together when things don't arrive in order? For instance, from "man grep" -E, --extended-regexp Interpret PATTERN as ... -F, --fixed-strings Interpret PATTERN as ... T

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

Re: for loop index question

2017-03-01 Thread Todd Chester
On 02/28/2017 11:06 PM, Andrew Kirkpatrick wrote: The zip operator in this case takes two sequences and interleaves them into a single sequence. It might be useful if you have handy or can generate a list of keys and a list of values you want to put together in pairs using => to create a hash t

Re: for loop index question

2017-03-01 Thread Todd Chester
On 03/01/2017 12:45 AM, Richard Hainsworth wrote: Todd, As Andrew explained Z takes two arrays and an operator, eg. =>, or +, and then 'runs' the operator on the elements of the two lists. Here, you defined @x as a list of strings. I defined two lists, one of keys and one of values. Then I zi

Re: for loop index question

2017-02-28 Thread Todd Chester
On Wednesday, March 01, 2017 01:01 PM, Todd Chester wrote: Hi All, And it even gets more interesting. It even works with Associative Arrays (Hashes), which I adore! Interesting how associative arrays don't print in order that they were entered into the array. #!/usr/bin/perl6 my @x =

Re: for loop index question

2017-02-28 Thread Todd Chester
Hi All, And it even gets more interesting. It even works with Associative Arrays (Hashes), which I adore! Interesting how associative arrays don't print in order that they were entered into the array. #!/usr/bin/perl6 my @x = ( "a", "b", "c", "d" ); print "loop of \@x\n"; for @x.kv -> $inde

Re: for loop index question

2017-02-28 Thread Todd Chester
On 02/28/2017 01:30 PM, yary wrote: Maybe using placeholder variables was a bit too much (those variables with the ^ twigil) for @a.kv -> $k, $v { say "Value $v has index $k" } Value g has index 0 Value h has index 1 Value i has index 2 Value j has index 3 Value k has index 4 Hi Yary,

Re: for loop index question

2017-02-28 Thread Todd Chester
On 02/28/2017 01:25 PM, Elizabeth Mattijsen wrote: On 28 Feb 2017, at 22:20, ToddAndMargo wrote: Hi All, There are times when I want to know th4e index of an array when I am in a "for @array" loop. I can do it with a variable outside the for loop and increment it, but I would line to know k

Re: for loop index question

2017-02-28 Thread Todd Chester
On 02/28/2017 01:20 PM, ToddAndMargo wrote: Hi All, There are times when I want to know th4e index of an array when I am in a "for @array" loop. I can do it with a variable outside the for loop and increment it, but I would line to know know if there is a way to incorporate it in the loop com

Re: for loop index question

2017-02-28 Thread Todd Chester
On Tue, Feb 28, 2017 at 01:20:47PM -0800, ToddAndMargo wrote: Hi All, There are times when I want to know th4e index of an array when I am in a "for @array" loop. I can do it with a variable outside the for loop and increment it, but I would line to know know if there is a way to incorporate

Re: Terminal::ANSIColor problem

2017-02-28 Thread Todd Chester
On 02/28/2017 04:11 AM, yary wrote: You don't need the double quotes around $Str- not even in Perl5! Hi Yary, You made me think of where I picked up that particular "bad habit". I go it, not from Perl 5, but from bash programming, where all h*** breaks loose if you don't quote things. :-) -T

Re: panda's port?

2017-01-18 Thread Todd Chester
On 01/17/2017 12:52 PM, Will Coleda wrote: Note that you can also set the environment variable GIT_PROTOCOL to https or ssh to use those protocols on their various ports, respectively. (Useful when behind a corporate firewall and http proxy) $ GIT_PROTOCOL=https panda install JSON::Fast Hi

Re: Need dynamic variables help

2017-01-13 Thread Todd Chester
On Fri, Jan 13, 2017 at 10:01 AM, Todd Chester <mailto:toddandma...@zoho.com>> wrote: Hi All, I am trying to understand how to read variables from the shell's environment. I am reading this: https://docs.perl6.org/language/variables#Dynamic_variab

panda?

2017-01-13 Thread Todd Chester
Hi All, I am using Fedora Core 25. There is no sign of "panda" in the repo (or I don't know what it is called). I need to install Net::FTP. No sign of that in the repos either (or I don't know what it is called either). How do I install Net::FTP? Many thanks, -T

Need dynamic variables help

2017-01-13 Thread Todd Chester
Hi All, I am trying to understand how to read variables from the shell's environment. I am reading this: https://docs.perl6.org/language/variables#Dynamic_variables #!/usr/bin/perl6 # print "Display = " + %*ENV{'DISPALY'} + "\n"; print "Perl Version = " + $*PERL + "\n"; $ ./env.pl6 Cannot

<    1   2