Re: match's replacement name?

2014-05-22 Thread perl6-users
readable. > > Thank you, > > Peter Schwenn > > p.s. by the way > $res = ($text ~~ s:g/ using \s+ RMA.Rhino (\W) /using Rhino$0/;) > simply sets $res to True or False as you probably knew > > > On Thu, May 22, 2014 at 8:29 PM, Timo Paulssen <mailto:t...@wakeli

Re: match's replacement name?

2014-05-24 Thread perl6-users
On 05/23/2014 09:08 PM, Peter Schwenn wrote: > Timo, perl6-users, > > I don't want to print out the WHOLE text resulting from the match (in > my case a long file,) but just the /replacement/ string. > > [...] > > Peter Schwenn > > On Thu, May 22, 2014 at 9:5

Re: How do I handle Getopt::Long stray entries?

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-11 11:48, Peter Pentchev wrote: On Mon, May 11, 2020 at 12:40:05AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-10 23:47, Peter Pentchev wrote: On Sun, May 10, 2020 at 06:20:02PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://modules.raku.org/dist/Getopt

Re: fill in form

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T GTK::Simple does work in Window, but I am at a loss for an

Re: fill in form

2020-05-12 Thread ToddAndMargo via perl6-users
On 2020-05-11 17:14, ToddAndMargo via perl6-users wrote: On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T

Re: fill in form

2020-05-12 Thread ToddAndMargo via perl6-users
> On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: >> Hi All, >> >> I want to create a fill in form in Windows: city, >> state, etc., you fill in the data. >> >> Is there some library out there for that? >> >> Any words of wisdom? &

Re: fill in form

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 14:05, Peter Pentchev wrote: On Wed, May 13, 2020 at 07:58:08AM -0700, Todd Chester via perl6-users wrote: On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city

Re: fill in form

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 15:29, ToddAndMargo via perl6-users wrote: 03-grid.p6 does not show how to extract the information. But he does make this comment: Once again we're free to directly define and assign a variable to hold the widget for later on. Which totally blows my mind.

bash "."?

2020-05-13 Thread ToddAndMargo via perl6-users
Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not sure.) . /etc/sysconfig/network-scripts/ifcfg-br0 which populates these (and other) variables DEVICE=br0 TYPE=Bridge ONBOOT=yes USERCTL=y

Re: bash "."?

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not

Re: bash "."?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not

sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
Hi All, 1) how do I get 40 or more digits out of sqrt? 2) how to I assist those bytes to a 40 (or more) byte long Buf? This obviously does not work: my Num $x = 3.sqrt; my Buf $y = Buf.new($x) Type check failed in initializing element #0 to Buf; expected uint8 but got Num (1.7320508075688772

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 05:51, Tobias Boege wrote: On Thu, 14 May 2020, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? Meaningful digits? In this instance, I do not care about meaningful. I only care about the noise. Just has to be repeatable. I may

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 08:13, Bruce Gray wrote: On May 14, 2020, at 7:27 AM, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? —snip— Use an Integer Root algorithm on ($number-you-want-the-root-of * 100 ** $number-of-digits-you-want), then shift the

Re: bash "."?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 08:22, Peter Pentchev wrote: On Thu, May 14, 2020 at 04:39:18AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." sta

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 05:51, Tobias Boege wrote: On Thu, 14 May 2020, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? Meaningful digits? Not possible as sqrt uses limited precision. I think the IEEE 754 doubles that I would suspect to be used internally

Re: How do I handle Getopt::Long stray entries?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-11 21:19, Peter Pentchev wrote: #!/usr/bin/env raku use v6.d; use Getopt::Long; sub cmd_install($cmd, Array[Str] :$enablerepo = [], Bool :$y = False, *@rest --> int) { say 'install'; dd $cmd; dd @rest; dd $enablerepo; dd $y; return 0;

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-14 23:57, Shlomi Fish wrote: (note that I comaintain it now). Then it will be awesome! Thank yuo!

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options that https://metacpan.org/pod/Config::IniFiles accepts (note that I comaintain it now). I will be playing with them shortly

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 00:26, ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options that https://metacpan.org/pod/Config::IniFiles  accepts (note that

Rakudo Star 2020.05-rc2

2020-05-15 Thread p.spek via perl6-users
Good day Rakoons! After the initial -rc1, I've received some feedback and have made a couple small tweaks to fix a few issues. This has resulted in a -rc2, which has been made public for testing. https://dist.tyil.nl/raku/rakudo-star/rakudo-star-2020.05-rc2.tar.gz https://dist.tyil.nl/raku/rakudo

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 01:43, Shlomi Fish wrote: Hi Todd! On Fri, 15 May 2020 00:26:28 -0700 ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 01:49, Peter Pentchev wrote: On Fri, May 15, 2020 at 01:24:27AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-15 00:26, ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 10:37, Elizabeth Mattijsen wrote: There will never be a Perl 6 version. what would you use in place of it?

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 15 May 2020, at 20:08, ToddAndMargo via perl6-users wrote: On 2020-05-15 10:37, Elizabeth Mattijsen wrote: There will never be a Perl 6 version. what would you use in place of it? On 2020-05-15 11:28, Elizabeth Mattijsen wrote: > There might be a Raku version > If Shlo

Re: sqrt and Buf question

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 12:09, Bruce Gray wrote: On May 14, 2020, at 4:36 PM, ToddAndMargo via perl6-users wrote: On 2020-05-14 08:13, Bruce Gray wrote: On May 14, 2020, at 7:27 AM, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? —snip— Use an Integer

Re: fill in form

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the 03-

Re: fill in form

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 15:23, Peter Pentchev wrote: On Fri, May 15, 2020 at 02:51:10PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 17:26, Tom Browder wrote: On Fri, May 15, 2020 at 13:47 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >> On 15 May 2020, at 20:08, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >> >>

I need help with IO.e

2020-05-15 Thread ToddAndMargo via perl6-users
Hi All,. Windows 7, sp1, x64 >raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. I am trying to get perl to tell me if a drive letter exists This is from Git's df command: >df -kPT H:\ Filesystem Type 1024-blocks Used Available Capacity Mount

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-15 22:30, ToddAndMargo via perl6-users wrote: Hi All,. Windows 7, sp1, x64 >raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. I am trying to get perl to tell me if a drive letter exists This is from Git's df command: &g

Re: sqrt and Buf question

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-14 22:26, Peter Pentchev wrote: And what is `2 * 100 ** 2000 `? Is that `(2 x 100)^ 2000` ((2 times 100) to the 2000 power? Point 1: exponentiation has a higher priority than multiplication. Point 2:https://rosettacode.org/wiki/Integer_roots Any chance of you answering the questio

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
> Le sam. 16 mai 2020 à 12:16, ToddAndMargo via perl6-users > mailto:perl6-users@perl.org>> a écrit : > > On 2020-05-15 22:30, ToddAndMargo via perl6-users wrote: > > Hi All,. > > > > Windows 7, sp1, x64 > > > > >ra

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 05:34, Kevin Pye wrote: The documentation for .d states: Returns |True| if the invocant is a path that exists and is a directory. The method will |fail|  with |X::IO::DoesNotExist| if the path points to a non-existent filesystem entity. (and

Re: sqrt and Buf question

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 14:48, William Michels via perl6-users wrote: Yes, ** stands for exponentiation Thank you!

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 06:38, Peter Pentchev wrote: $ raku *-e* "your one-liner script here" And also you might want to put some quotes around the paths to let Raku know that those are strings and not some identifiers or something. G'luck, Peter Hi Peter, This is what goofed me up: $ alias p5 alias

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 17:44, Peter Pentchev wrote: On Sat, May 16, 2020 at 03:19:05PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 06:38, Peter Pentchev wrote: $ raku *-e* "your one-liner script here" And also you might want to put some quotes around the paths to let Raku know

How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
Hi All, Windows 7 & 10 I want to know if a drive letter exists: K:\Windows\NtUtil>df -kPT Filesystem Type 1024-blocks Used Available Capacity Mounted on C:/Program Files/Git ntfs 40585620 15044068 25541552 38% / D: udf 5294394 5294394

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 01:23, Peter Pentchev wrote: On Sat, May 16, 2020 at 06:57:53PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 17:44, Peter Pentchev wrote: On Sat, May 16, 2020 at 03:19:05PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 06:38, Peter Pentchev wrote: $ raku

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 00:52, ToddAndMargo via perl6-users wrote: Hi All, Windows 7 & 10 I want to know if a drive letter exists: K:\Windows\NtUtil>df -kPT Filesystem   Type  1024-blocks  Used Available Capacity Mounted on C:/Program Files/Git ntfs 40585620  15044068  2

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 02:30, Peter Pentchev wrote: You said that you would tack Bool at the end in "if" statements, too. Hi Peter, No wonder. I do not remember saying that, but I could have. My `if` statements look like: if not "%Options".IO.d.Bool { say "Creating %Options"; mkdir(

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 07:47, Brad Gilbert wrote: Why do you have `.Bool` on all of the `.e` tests? Hi Brad, I do this because it keeps me out of trouble. I want back a yes or no answer, not True or Fail (X::IO::DoesNotExist). And I never remember which IO. will return a True or Fail or which functio

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 03:36, Peter Pentchev wrote: On Sun, May 17, 2020 at 03:01:34AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 02:30, Peter Pentchev wrote: You said that you would tack Bool at the end in "if" statements, too. Hi Peter, No wonder. I do not remember saying

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 03:50, Elizabeth Mattijsen wrote: [11:50:21]you don.t need the .Bool, .e already returns a Bool [11:53:07] sometimes IO.someletter returns True of Fail, not False. Tacking .Bool on the end, means I don't have to remember which ones [11:57:23] True or Fail. Typo [11:58:2

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 13:04, Peter Pentchev wrote: On Sun, May 17, 2020 at 12:12:51PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 03:36, Peter Pentchev wrote: On Sun, May 17, 2020 at 03:01:34AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 02:30, Peter Pentchev wrote: You

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 14:43, ToddAndMargo via perl6-users wrote: Although    "say 'yes' if 'h:/'.IO.d" is obscure to me and    "say 'h:/'.IO.d.Bool" is very easy for me to understand. Hi Peter, I think it would help if you knew how my mind w

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 20:28, Paul Procacci wrote: So tack a .Bool at the end. You are coercing a bool to a bool by doing so and hopefully the optimizer is smart enough for people who like to be redundant. ;) Hi Paul, Especially when I can never remember when IO.someletter will return a full True or

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:19, ToddAndMargo via perl6-users wrote: On 2020-05-17 20:28, Paul Procacci wrote: So tack a .Bool at the end. You are coercing a bool to a bool by doing so and hopefully the optimizer is smart enough for people who like to be redundant. ;) Hi Paul, Especially when I can

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
Follow up: When I go to maintain this thing in five days or five years and I have one of those "what the h*** is IO.d.Bool suppose to mean?" moments, I created the follow subs to make the code more readable/maintainable. And mind you I can always look up what IO.d.Bool means in my own IO docum

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:56, ToddAndMargo via perl6-users wrote: Follow up: Thank you for all the help figuring all this out!

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:48, Paul Procacci wrote: You can check this yourself by looking at the QAST nodes after the static analyzer has had its fill: # diff -u <(perl6 --target=optimize -e '"test".IO.e') <(perl6 --target=optimize -e '"test".IO.e.Bool') Huh. Not sure what I am looking at $ diff -

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-17 22:28, Paul Procacci wrote: Don't 'say' anything.  Just let the optimizer spit out the QAST that you are interested in looking at. The following spits out a diff after optimization: # diff -u <(perl6 --target=optimize -e '"test".IO.e') <(perl6 --target=optimize -e '"test".IO.e.Bo

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 13:28, Tom Browder wrote: On Mon, May 18, 2020 at 14:36 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-17 22:28, Paul Procacci wrote: ... 'say if "test".IO.d',  and 'say "test".IO.d.Bool'

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 14:22, Peter Pentchev wrote: Please note that in my example a couple of messages ago I did not write "say if 'h:/'.IO.d", I wrote "say 'yes' if 'h:/'.IO.d". The difference is very important and leads directly to the error-like message you got. Hi Peter, I as interested in the .d

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 14:35, Peter Pentchev wrote: My point is that you put a bare "say" without telling it*what* to say, which does something quite specific in both Perl and Raku. That should, at least, explain the error-like message. G'luck, Peter What I was after was to see what impact I had coerc

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 15:38, Peter Pentchev wrote: On Mon, May 18, 2020 at 03:18:26PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-18 14:35, Peter Pentchev wrote: My point is that you put a bare "say" without telling it*what* to say, which does something quite specific in both Per

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 15:44, Tom Browder wrote: On Mon, May 18, 2020 at 16:19 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-18 13:28, Tom Browder wrote: ... > Try: > > 'say so "test".IO.d' Todd, you didn't

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 16:01, Tom Browder wrote: Since you don't like to listen to advice I give up. Tom! I listen to your advice ALL-THE-TIME. I was just interested in something else. And when I did not understand the result, your way or my way, I abandoned the effort, especially since I did not nee

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly will "say if 'h:/'.IO.d" do? It returns the the result of the expression that "if" evaluated. I do know all this. It is easier for me to read the other way.

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 17:14, Peter Pentchev wrote: On Mon, May 18, 2020 at 04:53:31PM -0700, ToddAndMargo via perl6-users wrote: In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly will "say if 'h:/'.IO.d" do? It retur

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 22:58, ToddAndMargo via perl6-users wrote: On 2020-05-18 17:14, Peter Pentchev wrote: On Mon, May 18, 2020 at 04:53:31PM -0700, ToddAndMargo via perl6-users wrote: In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly

Re: I need help with IO.e

2020-05-22 Thread ToddAndMargo via perl6-users
On 2020-05-19 05:17, Peter Pentchev wrote: ...control structures, I mean. G'luck, Peter No problem, I appreciate all the help! :-) -T

Tip: erase an array

2020-05-23 Thread ToddAndMargo via perl6-users
Hi All, How to erase an array is missing from the docs. I just open a case on it: https://github.com/Raku/doc/issues/3423 In the mean time, to erase/empty an array: @x = Empty; @x = (); Both work. `Empty` is a bit more human readable :-) -T

I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
Hi All, https://docs.raku.org/routine/sort I need help sorting a list. This is the list of values I want to sort: H:\MyDocsBackup\backup1 H:\MyDocsBackup\backup2 H:\MyDocsBackup\backup126 H:\MyDocsBackup\backup3 H:\MyDocsBackup\backup33 H:\MyDocsBackup\backup6 This is what I want back: H:\M

Re: I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
On 24 May 2020, at 10:43, ToddAndMargo via perl6-users wrote: Hi All, https://docs.raku.org/routine/sort I need help sorting a list. This is the list of values I want to sort: H:\MyDocsBackup\backup1 H:\MyDocsBackup\backup2 H:\MyDocsBackup\backup126 H:\MyDocsBackup\backup3 H

Re: I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
On 2020-05-24 13:13, Tobias Boege wrote: On Sun, 24 May 2020, ToddAndMargo via perl6-users wrote: On 2020-05-24 02:24, Elizabeth Mattijsen wrote: dd .sort: { m/ \d+ $/ } Hi Elizabeth, This seems to work: $ raku -e 'dd .sort: { m/ \d+ $/ };' ("a5", "a6&quo

Re: I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
On 2020-05-24 15:07, Tobias Boege wrote: On Sun, 24 May 2020, Elizabeth Mattijsen wrote: Hmmm... it appears we need to numerify the match to get numeric comparison semantics, so we put a "+" before the match: $ raku -e 'my @x=.sort: { +m/ \d+ $/ }; for @x { say $_; }' a1 a2 a5 a123 a133 So

Re: I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
On 2020-05-24 15:39, ToddAndMargo via perl6-users wrote: On 2020-05-24 15:07, Tobias Boege wrote: On Sun, 24 May 2020, Elizabeth Mattijsen wrote: Hmmm... it appears we need to numerify the match to get numeric comparison semantics, so we put a "+" before the match: $ raku -e &#

Re: I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
On 2020-05-24 15:51, Patrick R. Michaud wrote: On Mon, May 25, 2020 at 12:07:22AM +0200, Tobias Boege wrote: @things.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self }) } Or how about even somethig like @things.sort: *.Version; which does handle a reasonable set of

I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
Hi All, Looking at the following: > my @things = .sort: *.Version; dd @things; for @things {say $_;} Array @things = ["a1b33", "a1", "a2rc2", "a2.3", "a5.1", "b1a23"] a1b33 a1 a2rc2 a2.3 a5.1 b1a23 Other than not quite getting the alpha, beta, and release candidate thing down, I do not unde

Re: I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
On Mon, May 25, 2020 at 1:24 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Looking at the following: > my @things = .sort: *.Version; dd @things; for @things {say $_;} Array @things = ["a1b33", "a1", &q

RakudoStar-2020.05 just hit

2020-05-25 Thread ToddAndMargo via perl6-users
Hot off the presses: RakudoStar-2020.05.1.01-win-x86_64-(JIT).msi :-)

Re: I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
On 2020-05-25 14:00, Brad Gilbert wrote: In the following the 「:」 makes it so you don't need parenthesis You have created a monster! > my $s="a:c"; say $s.index: ":" 1 :-)

I need a second pair of eyes

2020-05-25 Thread ToddAndMargo via perl6-users
HI All, I am missing something here: 154: # figure out the label 155: say %CommandLine; 156: if "%CommandLine".starts-with( "[" ) && 157: "%CommandLine".contains( "]" ) { BACKUP:\MyDocsBackup\backup1 Cannot resolve caller index(Str:U: Str:D); none of these signatures match: (L

Rakudo Star 2020.05

2020-05-26 Thread p.spek via perl6-users
Good day Rakoons! After two release candidates for 2020.05, I'm happy to announce that Rakudo Star is getting its official 2020.05 release. With help from hankache on the Windows side of things, we have gotten no reports of issues that prevent anyone from using this release. The files can be foun

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
> On Tue, May 26, 2020, 09:45 ToddAndMargo via perl6-users > mailto:perl6-users@perl.org>> wrote: > > HI All, > > I am missing something here: > > > 154: # figure out the label > 155: say %CommandLine; >

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
This is Rakudo version 2020.05.1 built on MoarVM version 2020.05 implementing Raku 6.d. It is back at it again. The second test, I sent it something with brackets in it. It is the failed test to goes wonkers I put some debugging and is seems that it does not like my `&&` 155: say %CommandLi

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-26 01:37, ToddAndMargo via perl6-users wrote: 155: A:\YourDocs\backup1     156: No  157: No    158: Cannot resolve caller index(Str:U: Str:D); none of these signatures

I need help testing for Nil

2020-05-26 Thread ToddAndMargo via perl6-users
Hi All, How do I turn this: $ raku -e 'my $x="abc"; say $x.index( "q" );' Nil into a test? $ raku -e 'my $x="abc"; if $x.index( "q" ) eq Nil {say "Nil"}else{say "Exists";}' Use of Nil in string context in block at -e line 1 Use of Nil in string context in block at -e line 1 Nil Many

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-26 01:40, ToddAndMargo via perl6-users wrote: On 2020-05-26 01:37, ToddAndMargo via perl6-users wrote: 155: A:\YourDocs\backup1 156: No   157: No     158: Cannot

Re: I need help testing for Nil

2020-05-26 Thread ToddAndMargo via perl6-users
On Tue, May 26, 2020 at 4:24 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, How do I turn this: $ raku -e 'my $x="abc"; say $x.index( "q" );' Nil into a test? $ raku -e 'my $x="abc&q

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
ot;index" multi handling the 1st undefined arg, is my guess. -y On Tue, May 26, 2020 at 4:41 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-26 01:37, ToddAndMargo via perl6-users wrote:

need string is not a a string is a string help

2020-05-26 Thread ToddAndMargo via perl6-users
Hi All, What in the dickens Only `say %Options;` works, but only when it only has a single argument. 241: for split( "", %Options ) -> $y {say "$y = ", ord( $y ) }; 242: for %Options.comb -> $y {say "$y = ", ord( $y ) }; 243: say %Options; 244: say ">" ~ %Options ~ "<"; 245: prin

Re: I need help testing for Nil

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-26 16:29, Brad Gilbert wrote: There are various equality operators. 「==」 Tests for numeric equality 「eq」 Tests for string equality 「===」 Tests for value identity 「=:=」 Tests for pointer equality (Note that it looks a bit like 「:=」) 「eqv」 Tests for structure equivalence. The 「==」 and

Re: need string is not a a string is a string help

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-26 17:13, ToddAndMargo via perl6-users wrote: Hi All, What in the dickens  Only `say  %Options;` works, but only when it only has a single argument. 241: for split( "", %Options ) -> $y {say "$y = ", ord( $y ) }; 242: for %Options.comb -> $y {say &quo

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-25 23:42, ToddAndMargo via perl6-users wrote: HI All, I am missing something here: 154:   # figure out the label 155:   say %CommandLine; 156:   if "%CommandLine".starts-with( "[" )  && 157:  "%CommandLine".contains( "]" ) { BA

Re: I need a second pair of eyes

2020-05-26 Thread ToddAndMargo via perl6-users
On 2020-05-26 19:16, ToddAndMargo via perl6-users wrote: On 2020-05-25 23:42, ToddAndMargo via perl6-users wrote: HI All, I am missing something here: 154:   # figure out the label 155:   say %CommandLine; 156:   if "%CommandLine".starts-with( "[" )  && 157: 

Re: I need a second pair of eyes

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-26 23:39, Peter Pentchev wrote: On Tue, May 26, 2020 at 07:16:54PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-25 23:42, ToddAndMargo via perl6-users wrote: HI All, I am missing something here: 154:   # figure out the label 155:   say %CommandLine; 156:   if

Re: I need a second pair of eyes

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-27 07:27, Brad Gilbert wrote: The point was that 「say」 will print undefined values without complaining. Really debug statements should be more like: $*STDERR.put: 「%CommandLine = 」, %CommandLine; Or more succinctly: dd %CommandLine; Which does bring to the forefront, wh

Re: I need a second pair of eyes

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-27 13:38, Veesh Goldman wrote: well, like I said before, if you just show ALL of your code, then we'd be able to know what happened. I fixed the mistake I made, which also fixed the wrong output from "say", so all is working now and I doubt the issue would reproduce. The code itself

I reproduced one of the errors!

2020-05-27 Thread ToddAndMargo via perl6-users
I managed to reproduce one of the errors I was getting. I specifically did not initialize $x. If I do, the error goes away. In my code, I did a "say $x" and it said $x had something in it. That is what threw me off K:\Windows\NtUtil>raku -v This is Rakudo version 2020.05.1 built on MoarVM ver

Re: I need a second pair of eyes

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-27 14:26, Will Coleda wrote: Part of framing the question in the first place is reducing the problem code to as small a subset as possible that still exhibits the problem. AND THEY ALWAYS WORK! ! No reporting that back to the developers. Often, in the course of doi

Re: I reproduced one of the errors!

2020-05-27 Thread ToddAndMargo via perl6-users
On 2020-05-27 14:32, Andy Bach wrote: #!/usr/bin/env raku my Str $x; if $x.starts-with( "[" ) && $x.contains( "]" ) { say "Passed"; } else { say "Failed"; } K:\Windows\NtUtil>raku Contains.Test.pl6 Cannot resolve caller starts-with(Str:U: Str:D); none of these signatures match (Cool:D: Cool:D

Re: bash "."?

2020-05-29 Thread ToddAndMargo via perl6-users
On 2020-05-28 06:47, Tom Browder wrote: On Fri, May 15, 2020 at 20:38 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-15 17:26, Tom Browder wrote: > On Fri, May 15, 2020 at 13:47 ToddAndMargo via perl6-users > mailto:perl6-us

Re: I reproduced one of the errors!

2020-05-29 Thread ToddAndMargo via perl6-users
On 2020-05-28 06:39, Peter Pentchev wrote: On Wed, May 27, 2020 at 03:12:01PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-27 14:32, Andy Bach wrote: #!/usr/bin/env raku my Str $x; if $x.starts-with( "[" ) && $x.contains( "]" ) { say "Passed"

I need help with Config:INI

2020-05-29 Thread ToddAndMargo via perl6-users
Hi All, I an not figure out how to read the hash. ~~~ ini.test.pl6.ini ~ # Raku: Confug::INI test INI # edit at your own risk [Backup paramters] target=B:\myDocsBackp\backup1 partition=BACKUP [eMail] smtp=smtp.bozo.com address=b...@theclown.com port=587 ~~~ /ini.te

Re: I reproduced one of the errors!

2020-05-30 Thread ToddAndMargo via perl6-users
On 2020-05-30 04:19, Peter Pentchev wrote: On Fri, May 29, 2020 at 04:36:41PM -0700, ToddAndMargo via perl6-users wrote: Hi Peter, No doubt it is operating as designed. It would be a lot more friendly if "Str:U" was changed to "Str:D". Oh please! Oh Please! S

question on pod comments

2020-05-30 Thread ToddAndMargo via perl6-users
Hi All, I am somewhat confused about pod comments: https://docs.raku.org/language/syntax#Pod_comments Seems pretty straight forward. But when I look at https://github.com/tadzik/perl6-Config-INI/blob/master/lib/Config/INI.pm starting line 45, I see =begin pod =head1 NAME =head1 SYNOPSIS =he

Re: I need help with Config:INI

2020-05-30 Thread ToddAndMargo via perl6-users
Follow up. Special thanks to Peter and David! I wrote a sample program to explain things in my personal documentation: -T Raku: reading INI files: Example: ~ini.test.pl6.ini ~~~ # Raku: Config::INI test INI # edit at your own risk IHave=NoSection [Backup paramters] target

Re: I need help with Config:INI

2020-05-30 Thread ToddAndMargo via perl6-users
On 2020-05-30 20:08, ToddAndMargo via perl6-users wrote: Follow up. I just opened An Example to consider adding to your documentation: https://github.com/tadzik/perl6-Config-INI/issues/17

  1   2   3   4   5   6   7   8   9   10   >