Re: #raku et alii down!

2025-07-10 Thread Will Coleda
What do you mean? I'm on IRC right now. On Thu, Jul 10, 2025 at 8:22 AM Tom Browder wrote: > Hi, any idea when the #raku* channels will be back up? I miss my daily > doses of Raku wisdom! > > -Tom (@tbrowder) >

Re: Exit code: -1073741515 ???

2025-07-09 Thread ToddAndMargo via perl6-users
On 7/9/25 4:09 PM, ToddAndMargo via perl6-users wrote: Hi All, Windows 11 I have seen this on two customers now.  It happens randomly. This is Cobian Reflector reading back the exit codes from my programs, which Cobian calls: "ERR The exit code of the program "C:\Program Files\Rakudo\bin\raku

Re: Discussion of problems with $/?

2025-06-22 Thread Elizabeth Mattijsen
Perhaps https://github.com/raku/problem-solving/issues/406 ? > On 22 Jun 2025, at 23:43, Joseph Brenner via perl6-users > wrote: > > I remember seeing something like a problem-solving issue talking about > problems with $/ (or the current behavior of it), and I can't find it at the > moment.

Re: VSS?

2025-06-13 Thread ToddAndMargo via perl6-users
On 6/12/25 6:27 AM, ToddAndMargo via perl6-users wrote: Hi All, Is there any Raku support for Windows VSS (Volume Shadow Copy)? Many thanks, -T I looking to make a shadow copy of a directory or directories, copy from it/them, then remove the shadow. Best I could find is calls to powershell.

Re: How do I do this pop up?

2025-06-12 Thread Timo Paulssen via perl6-users
Hi Todd, for a popup such as this, you will probably need a full GUI library. There are utilities to show very simple GUI dialogs like KDialog (probably linux-only), Zenity (two different windows ports exist, both have been abandoned almost a decade ago). These are all inspired by "dialog" w

Re: How do I do this pop up?

2025-06-12 Thread ToddAndMargo via perl6-users
On 5/21/25 12:19 AM, ToddAndMargo via perl6-users wrote: Hi All, Windows 10/11 How do I do a popup like this?  Well somewhat like this. https://ibb.co/7JQdGJP4 Many thanks, -T Any third party utility that works with Raku to accomplish this?

Re: how do I hide a variable from viewing

2025-06-09 Thread David Vergin
On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > *From:* ToddAndMargo via perl6-users > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > *To:* perl6-users > > > *Subject:* how do I hide a variable from viewing > > > Hi All, > > > > > > Fedora 41 (Linux) > > > >

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Hal Wigoda
I figured that was why. But I had to know (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jun 8, 2025, at 7:50 AM, Elizabeth Mattijsen wrote: > > No, as far as we know, Larry's fine! Just not that active anymore, > effectively

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Elizabeth Mattijsen
No, as far as we know, Larry's fine! Just not that active anymore, effectively retired. And known to not be very responsive to emails. So it felt like a good idea to make sure that a. he won't be bothered by unnecessary emails, and b. that people with questions will add an issue to the repo o

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Hal Wigoda
why remove Larry Wall’s email? Did he die? (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jun 8, 2025, at 7:18 AM, Will Coleda via perl6-language > wrote: > >  Branch: refs/heads/master > Home: https://github.com/Raku/old-des

Re: ones and twos compliment

2025-06-07 Thread Bruce Gray
> On Jun 6, 2025, at 21:53, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there an easy way to print ones' and two's compliment > of a 32 bit integer? > > Many thanks, > -T > > > sub ones-complement(Int $num) { >my $binary = $num.base(2); >my $complement = ''; >for

Re: ones and twos compliment

2025-06-07 Thread ToddAndMargo via perl6-users
On 6/7/25 12:57 PM, Elizabeth Mattijsen wrote: On 7 Jun 2025, at 21:12, ToddAndMargo via perl6-users wrote: [0] > my int32 $y=-1073741510 -1073741510 [1] > my $ones-complement = +^$y; Bytecode validation error at offset 164, instruction 23: operand type 32 does not match register type 24 for o

Re: ones and twos compliment

2025-06-07 Thread Elizabeth Mattijsen
> On 7 Jun 2025, at 21:12, ToddAndMargo via perl6-users > wrote: > [0] > my int32 $y=-1073741510 > -1073741510 > > [1] > my $ones-complement = +^$y; > Bytecode validation error at offset 164, instruction 23: > operand type 32 does not match register type 24 for op getlex_ni in frame > > > [1]

Re: ones and twos compliment

2025-06-07 Thread ToddAndMargo via perl6-users
On Sat, Jun 7, 2025 at 4:53 AM ToddAndMargo via perl6-users wrote: Is there an easy way to print ones' and two's compliment of a 32 bit integer? Many thanks, -T On 6/7/25 10:22 AM, Paul Procacci wrote: > my $number = 42; > my $ones-complement = +^$number; > my $twos-complement = +^$number

Re: ones and twos compliment

2025-06-07 Thread Paul Procacci
my $number = 42; my $ones-complement = +^$number; my $twos-complement = +^$number + 1; ~Paul On Sat, Jun 7, 2025 at 11:26 AM Will Coleda wrote: > > (You may have to manually paste that URL, gmail cut off the trailing ^ here > when I clicked on my own link) > > On Sat, Jun 7, 2025 at 4:50 PM Wil

Re: ones and twos compliment

2025-06-07 Thread Will Coleda
(You may have to manually paste that URL, gmail cut off the trailing ^ here when I clicked on my own link) On Sat, Jun 7, 2025 at 4:50 PM Will Coleda wrote: > Two's complement (from google search of the docs site): > https://docs.raku.org/language/operators#prefix_+^ > > > > On Sat, Jun 7, 2025

Re: ones and twos compliment

2025-06-07 Thread Will Coleda
Two's complement (from google search of the docs site): https://docs.raku.org/language/operators#prefix_+^ On Sat, Jun 7, 2025 at 4:53 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Is there an easy way to print ones' and two's compliment > of a 32 bit integer? > >

Re: Ecosystem module version v1 to 1?

2025-06-07 Thread Will Coleda
Create a new release with a new version that is in the correct format, e,g. '1.0.1'. You can't edit an existing release. --Regards. On Fri, Jun 6, 2025 at 6:52 PM rir via perl6-users wrote: > It appears that the ecosystem or community prefers modules' strings > without a leading 'v'. > > Since

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-27 Thread Sean McAfee
On Mon, May 26, 2025 at 6:50 AM Richard Hainsworth wrote: > My understanding is that there is a default test so that '.' and '..' > are not returned. So if :test is not specified thats the behaviour you get. > The page I linked to earlier doesn't read that way to me at all: Returns a lazy list

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-26 Thread Richard Hainsworth
On 26/05/2025 12:13, Elizabeth Mattijsen wrote: On 26 May 2025, at 00:34, Sean McAfee wrote: On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: I'll have to play around with your code a bit. Normally I would use `.dir(test => /:i \.pdf / )` to pull out PDF files. Oh yeah, that's a bit bett

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-26 Thread Elizabeth Mattijsen
> On 26 May 2025, at 00:34, Sean McAfee wrote: > > On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: > I'll have to play around with your code a bit. Normally I would use > `.dir(test => /:i \.pdf / )` to pull out PDF files. > > Oh yeah, that's a bit better. I'm not as familiar with the p

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-25 Thread Sean McAfee
On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: > I'll have to play around with your code a bit. Normally I would use >> `.dir(test => /:i \.pdf / )` to pull out PDF files. >> > > Oh yeah, that's a bit better. I'm not as familiar with the path API as I > could be. > ...Huh. I was just mes

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-25 Thread Sean McAfee
On Sat, May 24, 2025 at 2:31 AM William Michels wrote: > Thanks, Sean! > > Do any of the various `PDF` modules work to solve your page-counting quest? > My task was just a one-off, so I didn't look. If I were working on a more permanent program, I'd try to reduce external dependencies in that w

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread Clifton Wood
My previous message should read ".say for" instead of "say for". Sorry On Sat, May 24, 2025 at 6:28 AM Clifton Wood wrote: > Just for fun, here's a similar one-liner using File::Find and PDF::Class: > > # Formatted for clarity; > use File::Find; > use PDF::Class; . > say for find( dir => ".", na

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread Clifton Wood
Just for fun, here's a similar one-liner using File::Find and PDF::Class: # Formatted for clarity; use File::Find; use PDF::Class; . say for find( dir => ".", name => *.ends-with(".pdf") ).map( sub ($_) { CATCH { default { return 0 } }; say "Checking { .absolute }..."; PDF::Class.ope

Re: raku-toml confusion

2025-05-24 Thread ToddAndMargo via perl6-users
On 5/24/25 2:40 AM, Peter Pentchev wrote: On Fri, May 23, 2025 at 05:44:01PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://github.com/tony-o/raku-toml In the usage parsing example: Parsing TOML use TOML; my $config = from-toml("config.toml".IO.slurp); # use $c

Re: raku-toml confusion

2025-05-24 Thread Peter Pentchev
On Fri, May 23, 2025 at 05:44:01PM -0700, ToddAndMargo via perl6-users wrote: > Hi All, > > https://github.com/tony-o/raku-toml > > In the usage parsing example: > > Parsing TOML > use TOML; > my $config = from-toml("config.toml".IO.slurp); > # use $config like any ol' hash > >

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread William Michels via perl6-users
Thanks, Sean! Do any of the various `PDF` modules work to solve your page-counting quest? I'll have to play around with your code a bit. Normally I would use `.dir(test => /:i \.pdf / )` to pull out PDF files. The closest U&L answer posted for your issue might be: https://unix.stackexchange.c

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:31 PM, Peter Pentchev wrote: The format itself is described athttps://toml.io/en/ There are libraries for reading and writing TOML files in all of the popular programming languages. Thank you!

Re: how do I hide a variable from viewing

2025-05-21 Thread raf via perl6-users
On Wed, May 21, 2025 at 03:02:58PM +0300, Peter Pentchev wrote: > On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > > *From:* ToddAndMargo via perl6-users > > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > > *To:* perl6-users > > > > *Subject:* how do I hide

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:31 PM, Peter Pentchev wrote: When you do '. file.ini', you are NOT telling the shell to read an INI-style file, you are telling it to EXECUTE shell commands. Hi Peter, Your exposition was much better written and explained than mine. The only thing I would add is that it becomes p

Re: how do I hide a variable from viewing

2025-05-21 Thread Peter Pentchev
On Wed, May 21, 2025 at 02:51:28PM -0700, ToddAndMargo via perl6-users wrote: > On 5/21/25 5:02 AM, Peter Pentchev wrote: > > On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users > > wrote: > > > > > *From:* ToddAndMargo via perl6-users > > > > > *Sent:* Tuesday, May 20, 2025 5:

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:02 AM, Peter Pentchev wrote: On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: *From:* ToddAndMargo via perl6-users *Sent:* Tuesday, May 20, 2025 5:29 AM *To:* perl6-users *Subject:* how do I hide a variable from viewing Hi All, Fedora 41 (Linux) Sinc

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-21 Thread Sean McAfee
On Tue, May 20, 2025 at 12:51 PM William Michels via perl6-users < perl6-us...@perl.org> wrote: > If you haven't visited U&L StackExchange, you should! It's much less > 'siloed' than StackOverflow in that an OP might post a question requesting > a bash/sed/awk answer, but other answers are readily

Re: how do I hide a variable from viewing

2025-05-21 Thread Peter Pentchev
On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > *From:* ToddAndMargo via perl6-users > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > *To:* perl6-users > > > *Subject:* how do I hide a variable from viewing > > > Hi All, > > > > > > Fedora 41 (Linux) > > > >

Re: how do I hide a variable from viewing

2025-05-20 Thread ToddAndMargo via perl6-users
*From:* ToddAndMargo via perl6-users *Sent:* Tuesday, May 20, 2025 5:29 AM *To:* perl6-users *Subject:* how do I hide a variable from viewing Hi All, Fedora 41 (Linux) Since my *.raku can be publicly read, how do I obscure the contents of a variable so other can not read it? Currently what I

Re: how do I hide a variable from viewing

2025-05-20 Thread Mark Devine
Todd, I got tired of having clear-text passwords and other sensitive strings in my raku scripts, so I wrote KHPH for myself for use on Linux/UNIX, then published it. The idea catches criticism because it isn't encryption, but rather just a little obfuscation. Sometimes a little obfuscation is

Re: new win rakudo

2025-05-17 Thread ToddAndMargo via perl6-users
On 5/17/25 5:06 PM, Tom Browder wrote: On Sat, May 17, 2025 at 18:02 ToddAndMargo via perl6-users us...@perl.org > wrote: Hi All, My update program just caught a new update for Windows Rakudo: GetWinRakudo  new update downloaded  2025.04.01 --> 2025.

Re: new win rakudo

2025-05-17 Thread Tom Browder
On Sat, May 17, 2025 at 18:02 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > My update program just caught a new update for Windows Rakudo: > > GetWinRakudo new update downloaded 2025.04.01 --> 2025.05.0 > > https://rakudo.org/downloads > > No idea what the changes are

Re: Who owns the code?

2025-05-17 Thread ToddAndMargo via perl6-users
On Tue, May 13, 2025, 5:24 AM ToddAndMargo via perl6-users us...@perl.org > wrote: Ooops.  that should have said "who" not "how" in the subject line. On 5/13/25 2:22 AM, ToddAndMargo via perl6-users wrote: > Hi All, > > I just got off a

Re: Who owns the code?

2025-05-17 Thread yary
I'm guessing that you are in the USA same as me. Since the contracts didn't say they were buying code they don't own the code. Copyright law would say you own the code. -y On Tue, May 13, 2025, 5:24 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Ooops. that should have said "w

Re: How owns the code?

2025-05-15 Thread ToddAndMargo via perl6-users
On 14 May 2025, at 19:54, ToddAndMargo via perl6-users wrote: On 5/14/25 5:13 AM, Lars Noodén wrote: On 5/14/25 06:54, Clifton Wood wrote: So for sure you own all of the code*prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to rel

Re: How owns the code?

2025-05-14 Thread Elizabeth Mattijsen
If you were paid in cash, I wouldn't worry about anything and consider the code yours. > On 14 May 2025, at 19:54, ToddAndMargo via perl6-users > wrote: > > On 5/14/25 5:13 AM, Lars Noodén wrote: >> On 5/14/25 06:54, Clifton Wood wrote: >>> So for sure you own all of the code*prior* to your mo

Re: How owns the code?

2025-05-14 Thread ToddAndMargo via perl6-users
On 5/14/25 5:13 AM, Lars Noodén wrote: On 5/14/25 06:54, Clifton Wood wrote: So for sure you own all of the code*prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to relinquish his rights in writing*, then your modifications belong to

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 8:54 PM, Clifton Wood wrote: So for sure you own all of the code /prior/ to your modifications. As Liz has stated, unless you discuss things with the customer and /he chooses to relinquish his rights in writing/, then your modifications belong to him. You can't hurt to start a disc

Re: How owns the code?

2025-05-13 Thread Clifton Wood
So for sure you own all of the code *prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to relinquish his rights in writing*, then your modifications belong to him. You can't hurt to start a discussion. That would be the best first step.

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 3:46 AM, Elizabeth Mattijsen wrote: I'd say, unless you made prior arrangements with the client specifically stating that you own the copyright on the programming work you did, the client owns the rights to the code. Oh it is specific to his installation. And the specific code I w

Re: How owns the code?

2025-05-13 Thread Elizabeth Mattijsen
> On 13 May 2025, at 12:35, ToddAndMargo via perl6-users > wrote: > > On 5/13/25 2:56 AM, Elizabeth Mattijsen wrote: >>> On 13 May 2025, at 11:22, ToddAndMargo via perl6-users >>> wrote: >>> I just got off a YUGE jobs where I installed two servers, a >>> firewall, and redid their networking

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 2:56 AM, Elizabeth Mattijsen wrote: On 13 May 2025, at 11:22, ToddAndMargo via perl6-users wrote: I just got off a YUGE jobs where I installed two servers, a firewall, and redid their networking. Part of what I did was a lot of coding to getting things all working as expected. Ques

Re: How owns the code?

2025-05-13 Thread Elizabeth Mattijsen
> On 13 May 2025, at 11:22, ToddAndMargo via perl6-users > wrote: > I just got off a YUGE jobs where I installed two servers, a > firewall, and redid their networking. Part of what I did > was a lot of coding to getting things all working as expected. > > Question: who own the code I created.

Re: Who owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
Ooops. that should have said "who" not "how" in the subject line. On 5/13/25 2:22 AM, ToddAndMargo via perl6-users wrote: Hi All, I just got off a YUGE jobs where I installed two servers, a firewall, and redid their networking.  Part of what I did was a lot of coding to getting things all work

Re: How do I print a structure?

2025-04-12 Thread ToddAndMargo via perl6-users
`.Str` will only return the object’s identifier by default, but calling `.gist` (or `.raku`) will return code you can run to re-create the object. So to get the same output with `print` like you did with `say`, only without the newline, you can do `print $Partition.gist` or `print $Partition.raku

Re: H9w do I print a structure?

2025-04-12 Thread Tirifto
identifier by default, but calling `.gist` (or `.raku`) will return code you can run to re-create the object. So to get the same output with `print` like you did with `say`, only without the newline, you can do `print $Partition.gist` or `print $Partition.raku`. (`.gist` might not show the entire

Re: rename and unc

2025-04-11 Thread ToddAndMargo via perl6-users
On Apr 3, 2025, at 19:05, ToddAndMargo via perl6-users us...@perl.org> wrote: > On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory >

Re: rename and unc

2025-04-11 Thread William Michels via perl6-users
From Raku's `rename` man-page: "Note: some renames will always fail, such as when the new name is on a different storage device. See also: move." https://docs.raku.org/routine/rename HTH, Bill. PS. If you want Raku code fitting a 'create-backup; unlink-original; copy-backup-to-original-locati

Re: I need help with .IO.d.Bool

2025-04-06 Thread ToddAndMargo via perl6-users
On 4/5/25 6:58 PM, ToddAndMargo via perl6-users wrote: sub Directory I changed the name to DirectoryExists The new name is more human friendly

Re: I need help with .IO.d.Bool

2025-04-05 Thread ToddAndMargo via perl6-users
On 4/2/25 6:08 PM, Bruce Gray wrote: On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users wrote: --snip-- raku -e "say '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" False --snip-- Moving this one-liner into a .raku file (to remove the complication of Wi

Re: I need help with .IO.d.Bool

2025-04-05 Thread Bruce Gray
> On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users > wrote: --snip-- > raku -e "say > '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" > False --snip-- Moving this one-liner into a .raku file (to remove the complication of Windows needing double-quotes for o

Re: rename and unc

2025-04-03 Thread ToddAndMargo via perl6-users
> On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory > \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6 to > \\192.168.240.10\o

Re: unc "for" bug

2025-04-03 Thread ToddAndMargo via perl6-users
On Wed, Apr 2, 2025 at 11:37 PM ToddAndMargo via perl6-users us...@perl.org > wrote: Hi All, Windows Server 2025 (souped up W11) raku -v Welcome to RakudoΓäó v2025.02. Now this has to be a bug! Good result: raku -e "for dir Q[C:

Re: unc "for" bug

2025-04-03 Thread yary
What does cmd shell output from dir \\192.168.240.10\oldserver\Backup\MyDocsBackup ? -y On Wed, Apr 2, 2025 at 11:37 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Windows Server 2025 (souped up W11) > > raku -v > Welcome to RakudoΓäó v2025.02. > > Now this has t

Re: rename and unc

2025-04-03 Thread yary
The first 3 characters of the error is telling you the problem C:\192 it's same as in another thread, use Q[\\192 ... instead of '\\192 ... , so that you preserve the backslashes. OR double each backslash- `192.168.240.10\\oldserver ... and then you can keep using variables as you normally

Re: I need help with get-options

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 8:22 AM, Bruce Gray wrote: my $CommandLine = CommandLineClass.new{    help   => False,    debug  => False,    UNC_BackupPath => Q[\\192.168.240.10\MyDocsBackup\backup1],    rotates    => 2,    ParentDir  => "/" }; The problem is with the syntax of the `new`. Y

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 9:53 PM, ToddAndMargo via perl6-users wrote: On 4/2/25 6:26 PM, Will Coleda wrote: Try printing the Str before you do anything with it to see what happens. I moved to powershell I mean I did a call to powershell to find if a directory existed

Re: I need help with .IO.d.Bool

2025-04-02 Thread Will Coleda
Try printing the Str before you do anything with it to see what happens. (Hint - the backslash character escapes characters in literal strings) On Wed, Apr 2, 2025 at 8:47 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Windows Server 2025 (souped up W11) > > raku -v

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 6:26 PM, Will Coleda wrote: Try printing the Str before you do anything with it to see what happens. I moved to powershell

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 6:08 PM, Bruce Gray wrote: On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users wrote: --snip-- raku -e "say '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" False --snip-- Moving this one-liner into a .raku file (to remove the complication of Wi

Re: I need help with get-options

2025-04-02 Thread Bruce Gray
> On Apr 2, 2025, at 05:47, ToddAndMargo via perl6-users > wrote: --snip-- > Hi Bruce, > > Sorry. I do know I am suppose to post some minimal code. > I was programming for 11 straight hours and was not > thinking too clearly. I understand. > I was trying to do what you said. Read it into

Re: I need help with get-options

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/1/25 4:04 PM, Bruce Gray wrote: On Apr 1, 2025, at 03:55, ToddAndMargo via perl6-users wrote: --snip-- I have the following run string: raku C:\NtUtil\RLA.Backup.raku --rotates 345 --UNC_BackupPath \\192.168.240.10\Backup\MyDocsBackup\backup1 --debug use Getopt::Long; # get-opti

Re: I need help with get-options

2025-04-01 Thread Bruce Gray
> On Apr 1, 2025, at 03:55, ToddAndMargo via perl6-users > wrote: --snip-- > I have the following run string: > raku C:\NtUtil\RLA.Backup.raku --rotates 345 --UNC_BackupPath > \\192.168.240.10\Backup\MyDocsBackup\backup1 --debug > > > use Getopt::Long; # get-options > get-options('debug'

Re: I need help with get-options

2025-04-01 Thread ToddAndMargo via perl6-users
Should have said "I need help with get-options"

Re: I need help understanding a match

2025-01-16 Thread ToddAndMargo via perl6-users
On 1/16/25 1:41 AM, Todd Chester via perl6-users wrote: First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. Hi Bill, Don't apologize. You are teaching me at trans light spe

Re: I need help understanding a match

2025-01-16 Thread Todd Chester via perl6-users
Thank you! On 1/13/25 18:20, William Michels via perl6-users wrote: Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different appro

Re: Q[] question

2025-01-13 Thread ToddAndMargo via perl6-users
On 1/13/25 2:25 AM, Elizabeth Mattijsen wrote: On 12 Jan 2025, at 04:46, Kevin Pye wrote: On Sun, 12 Jan 2025, at 14:01, ToddAndMargo via perl6-users wrote: Hi All, Is Q[...] the same thing as <...> ? No. Q[…] is the bare quoting construct. There'll be no interpolation of variable

Re: I need help understanding a match

2025-01-13 Thread William Michels via perl6-users
Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different approaches to your regex problem, and posted what I thought was the best o

Re: Q[] question

2025-01-13 Thread Elizabeth Mattijsen
> On 12 Jan 2025, at 04:46, Kevin Pye wrote: > > On Sun, 12 Jan 2025, at 14:01, ToddAndMargo via perl6-users wrote: >> Hi All, >> >> Is >>Q[...] >> >> the same thing as >><...> >> ? > > No. > > Q[…] is the bare quoting construct. There'll be no interpolation of > variables, no splitt

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
On 1/12/25 3:11 AM, ToddAndMargo via perl6-users wrote: `?download ^`   # positive look-behind, match but don`t capture `download `   # `^` means "look behind" Opps, that should be: `?before ^` # positive look-behind, match but don`t capture `download ` # `^` m

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
Hi Bill, Please correct my notes. Many thanks, -T Explanation: my @y = $x ~~ m:g/ .*? | \h+ > /; `m:g` # match and global `\...\` # the constrains (beginning and end) of the match `<...>` # constraints of instructions inside the match First instruction: `` `?download ^` # p

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
On 1/12/25 12:59 AM, William Michels via perl6-users wrote: ~$ /Users/admin/rakudo/rakudo-2024.09/rakudo-moar-2024.09-01-macos- arm64-clang/bin/raku -e '  \    my Str $AltClickHere = lines[0];  \    my @AltArray =       ($AltClickHere ~~ m:g/           download        #literal           .*?

Re: I need help understanding a match

2025-01-12 Thread William Michels via perl6-users
~$ /Users/admin/rakudo/rakudo-2024.09/rakudo-moar-2024.09-01-macos-arm64-clang/bin/raku -e ' \ my Str $AltClickHere = lines[0]; \ my @AltArray = ($AltClickHere ~~ m:g/ download#literal .*? #any-character, one-or-more, frugal > #po

Re: Q[] question

2025-01-11 Thread ToddAndMargo via perl6-users
On 1/11/25 7:46 PM, Kevin Pye wrote: On Sun, 12 Jan 2025, at 14:01, ToddAndMargo via perl6-users wrote: Hi All, Is Q[...] the same thing as <...> ? No. Q[…] is the bare quoting construct. There'll be no interpolation of variables, no splitting into words, nothing other than creat

Re: Q[] question

2025-01-11 Thread Kevin Pye
On Sun, 12 Jan 2025, at 14:01, ToddAndMargo via perl6-users wrote: > Hi All, > > Is > Q[...] > > the same thing as > <...> > ? No. Q[…] is the bare quoting construct. There'll be no interpolation of variables, no splitting into words, nothing other than creating a bare string. But Q als

Re: How to cut up a long line

2025-01-11 Thread William Michels via perl6-users
I was using an older version of Rakudo (2023.05). With a newer version Rakudo (2024.09-01) you now have to `>>.Str` hyper or `.map(*.Str)` map to a string. (I've also added a call to `@AltArray.elems.say`, at the end): ~$ /Users/admin/rakudo/rakudo-2024.09/rakudo-moar-2024.09-01-macos-arm64-cl

Re: How to cut up a long line

2025-01-11 Thread ToddAndMargo via perl6-users
On 1/11/25 2:20 AM, ToddAndMargo via perl6-users wrote: On 1/11/25 2:17 AM, ToddAndMargo wrote: On 1/10/25 9:35 PM, ToddAndMargo wrote: On Jan 10, 2025, at 17:50, ToddAndMargo via perl6-users us...@perl.org> wrote: Hi All, I am scratching my head trying to figure out how to cut up this lo

Re: How to cut up a long line

2025-01-11 Thread ToddAndMargo via perl6-users
On 1/11/25 2:17 AM, ToddAndMargo wrote: On 1/10/25 9:35 PM, ToddAndMargo wrote: On Jan 10, 2025, at 17:50, ToddAndMargo via perl6-users us...@perl.org> wrote: Hi All, I am scratching my head trying to figure out how to cut up this long line; download='betterbird-128.6.0esr-bb20.de.linux-

Re: How to cut up a long line

2025-01-11 Thread ToddAndMargo via perl6-users
On 1/10/25 9:35 PM, ToddAndMargo wrote: On Jan 10, 2025, at 17:50, ToddAndMargo via perl6-users us...@perl.org> wrote: Hi All, I am scratching my head trying to figure out how to cut up this long line; download='betterbird-128.6.0esr-bb20.de.linux-x86_64.tar.bz2'>class="img bz2">betterbir

Re: How to cut up a long line

2025-01-10 Thread William Michels via perl6-users
~$ raku -e ' \ my Str $AltClickHere = lines[0]; \ my @AltArray = $AltClickHere ~~ m:g/ .*? | \h+ > /; \ .put for @AltArray;' todd_test.txt download='betterbird-128.6.0esr-bb20.de.linux-x86_64.tar.bz2' download='betterbird-128.6.0esr-bb20.en-US.linux-x86_64.tar.bz2' download='bett

Re: How to cut up a long line

2025-01-10 Thread ToddAndMargo via perl6-users
On Jan 10, 2025, at 17:50, ToddAndMargo via perl6-users us...@perl.org> wrote: Hi All, I am scratching my head trying to figure out how to cut up this long line; download='betterbird-128.6.0esr-bb20.de.linux-x86_64.tar.bz2'>class="img bz2">betterbird-128.6.0esr-bb20.de.linux-x86_64.tar.bz

Re: How to cut up a long line

2025-01-10 Thread William Michels via perl6-users
Hi Todd, ~$ raku -ne 'put $/.join("\n") if m:g/ .*? | \h+ > /;' todd_test.txt download='betterbird-128.6.0esr-bb20.de.linux-x86_64.tar.bz2' download='betterbird-128.6.0esr-bb20.en-US.linux-x86_64.tar.bz2' download='betterbird-128.6.0esr-bb20.es-AR.linux-x86_64.tar.bz2' See: https://docs.raku.

Re: oop pre salt question

2024-12-16 Thread Elizabeth Mattijsen
Yes > On 16 Dec 2024, at 11:52, ToddAndMargo via perl6-users > wrote: > > On 12/16/24 02:27, Elizabeth Mattijsen wrote: >> class Fruit { >> has Str $.location is rw = "Cucamonga"; >> has UInt $.apples is rw = 400; >> has UInt $.oranges is rw = 200; >> has UInt $.bana

Re: oop pre salt question

2024-12-16 Thread ToddAndMargo via perl6-users
On 12/16/24 02:27, Elizabeth Mattijsen wrote: class Fruit { has Str $.location is rw = "Cucamonga"; has UInt $.apples is rw = 400; has UInt $.oranges is rw = 200; has UInt $.bananas is rw = 50; ``} Is the `` at the end a typo?

Re: oop pre salt question

2024-12-16 Thread ToddAndMargo via perl6-users
On 16 Dec 2024, at 10:49, ToddAndMargo via perl6-users wrote: Hi All, In the following; class Fruit { has Str $.location is rw; has UInt $.apples is rw; has UInt $.oranges is rw; has UInt $.bananas is rw; } # Pre-salted: my $FruitStand = Fr

Re: oop pre salt question

2024-12-16 Thread Elizabeth Mattijsen
class Fruit { has Str $.location is rw = "Cucamonga"; has UInt $.apples is rw = 400; has UInt $.oranges is rw = 200; has UInt $.bananas is rw = 50; ``} > On 16 Dec 2024, at 10:49, ToddAndMargo via perl6-users > wrote: > > Hi All, > > In the following; > > class

Re: "ICU - International Components for Unicode"

2024-12-12 Thread Elizabeth Mattijsen
chime it? > > Is a $*UNICODE dynamic variable a possibility? > > Related: I'm re-reading Matéu's comment, which (I think) says to let ICU > live in a module somewhere. > > Best Regards, Bill. > >> On Sep 29, 2020, at 21:19, Matthew Stuckwisch wrote: >

Re: "ICU - International Components for Unicode"

2024-12-09 Thread William Michels via perl6-users
Nudging this conversation, ...to follow progress since 2020. Anyone want to chime it? Is a $*UNICODE dynamic variable a possibility? Related: I'm re-reading Matéu's comment, which (I think) says to let ICU live in a module somewhere. Best Regards, Bill. > On Sep 29, 2020, at 2

Re: Is chat down for good?

2024-11-22 Thread ToddAndMargo via perl6-users
On 11/15/24 01:51, ToddAndMargo via perl6-users wrote: It is 01:50 Pacific Standard Time (PST). https://kiwiirc.com/client/irc.libera.chat/#raku gives error 504.  I did clear my cache and reproduced on both Brave Browser and Firefox Back up yesterday at this end.

Re: zef how dependencies of installed modules?

2024-11-22 Thread ToddAndMargo via perl6-users
On 11/22/24 01:42, Quanrong via perl6-users wrote: > After the module gets installed, how can I ask zef > what the dependencies were? `zef --help` says that it's with the `depends` subcommand. So: $ zef depends File::Temp File::Directory::Tree:ver<0.1>:auth Hope that helps! Hi Quanrong, T

Re: zef how dependencies of installed modules?

2024-11-22 Thread Quanrong via perl6-users
> After the module gets installed, how can I ask zef > what the dependencies were? `zef --help` says that it's with the `depends` subcommand. So: $ zef depends File::Temp File::Directory::Tree:ver<0.1>:auth Hope that helps!

Re: I am getting flooded with tmp files

2024-11-21 Thread Bruce Gray
> On Nov 18, 2024, at 22:49, ToddAndMargo via perl6-users > wrote: > > On 11/18/24 20:06, ToddAndMargo via perl6-users wrote: >> I am getting flooded with tmp files. I though >> I was erasing them (unlink). What am I doing >> wrong: >> use File::Temp; >> ... >> my Str $TmpFile = $?FILE; >> $

Re: zef show dependencies of installed modules?

2024-11-20 Thread ToddAndMargo via perl6-users
Subject lacked the s in show. Sorry about that.

  1   2   3   4   5   6   7   8   9   10   >