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.

Re: Bug reporting etiquette question

2024-11-19 Thread ToddAndMargo via perl6-users
On 11/19/24 08:36, Will Coleda wrote: You should attach the code to the ticket - otherwise when the snippet times out, there's no record of the code. If it's in a git repo somewhere, that's also fine, include a link to the specific code. In general, the more golfed (shorter) the code is that sh

Re: Bug reporting etiquette question

2024-11-19 Thread Will Coleda
You should attach the code to the ticket - otherwise when the snippet times out, there's no record of the code. If it's in a git repo somewhere, that's also fine, include a link to the specific code. In general, the more golfed (shorter) the code is that shows the issue, the better. Regarding the

Re: Is chat down for good?

2024-11-19 Thread Will Coleda
Working fine here at the moment. On Fri, Nov 15, 2024 at 10:25 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 11/15/24 07:21, Elizabeth Mattijsen wrote: > > #raku as channel name works for me > > > >> On 15 Nov 2024, at 13:56, ToddAndMargo via perl6-users < > perl6-us...@perl

Re: I am getting flooded with tmp files

2024-11-18 Thread ToddAndMargo via perl6-users
On 11/18/24 21:04, Bruce Gray wrote: On Nov 18, 2024, at 22:49, ToddAndMargo via perl6-users us...@perl.org> 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; ... m

Re: I am getting flooded with tmp files

2024-11-18 Thread Peter Scott
Something in your program is keeping them open until your program closes the filehandles on exit.  Unlink can't remove a file that's open, only make a note for later. Restricting the scope of the temp file handles would probably be the cleanest way. On 11/18/2024 8:49 PM, ToddAndMargo via per

Re: I am getting flooded with tmp files

2024-11-18 Thread ToddAndMargo via perl6-users
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; $TmpFile ~~ s| .* $( Q[/] ) ||;  # we need just the name $TmpFile ~~ s| $( Q[.] ) .* ||; ($Tmp

Re: unhandled target type

2024-11-16 Thread Brian Duggan
On Saturday, November 16, Timo Paulssen via perl6-users wrote: > By the way, I think you can work around the bug by either using > CArray[WTS_SESSION_INFOA] instead of Pointer[WTS_SESSION_INFOA], or maybe by > using .succ on the $array Pointer $i times instead of the [$i] syntax, since > the bug w

Re: unhandled target type

2024-11-16 Thread Timo Paulssen via perl6-users
On 11/16/24 08:21, ToddAndMargo via perl6-users wrote: On 11/15/24 04:49, ToddAndMargo via perl6-users wrote: And in less than 24 hours, Timo located the regression and placed a pull request to fix it. In the 30 years I have been doing this stuff, I have NEVER seen that kind of a rapid respond

Re: Is there a Terminal::ANSIcolor for Windows?

2024-11-16 Thread ToddAndMargo via perl6-users
On 11/13/24 06:56, ToddAndMargo via perl6-users wrote: Since I know have a module to read and write the registry, my next step is to see if I can change the setting and have it work without having to exit the terminal and/or reboot the machine. NO need for a reboot. But if you are in a termi

Re: unhandled target type

2024-11-15 Thread ToddAndMargo via perl6-users
On 11/15/24 04:49, ToddAndMargo via perl6-users wrote: On 11/12/24 22:20, ToddAndMargo via perl6-users wrote: Hi All, Windows 11-24H4  Pro After upgrading to     RakudoMoar-2024.10.01-win-x86_64-msvc.msi from     RakudoMoar-2022.06.01-win-x86_64-msvc.msi I am throwing this error: I just rep

Re: Is chat down for good?

2024-11-15 Thread ToddAndMargo via perl6-users
On 11/15/24 07:21, Elizabeth Mattijsen wrote: #raku as channel name works for me On 15 Nov 2024, at 13:56, ToddAndMargo via perl6-users wrote: On 11/15/24 03:59, ToddAndMargo via perl6-users wrote: On 15 Nov 2024, at 10:51, ToddAndMargo via perl6-users wrote: It is 01:50 Pacific Standard

Re: Is chat down for good?

2024-11-15 Thread Elizabeth Mattijsen
#raku as channel name works for me > On 15 Nov 2024, at 13:56, ToddAndMargo via perl6-users > wrote: > > On 11/15/24 03:59, ToddAndMargo via perl6-users wrote: On 15 Nov 2024, at 10:51, ToddAndMargo via perl6-users >>> us...@perl.org> wrote: It is 01:50 Pacific Standard Time (PS

Re: Is chat down for good?

2024-11-15 Thread ToddAndMargo via perl6-users
On 11/15/24 03:59, ToddAndMargo via perl6-users wrote: On 15 Nov 2024, at 10:51, ToddAndMargo via perl6-users us...@perl.org> 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 Bro

Re: things I miss in Raku (from perl)

2024-11-15 Thread ToddAndMargo via perl6-users
On 10/17/24 18:45, rir via perl6-users wrote: 1) a simple C style call to call system features, etc. P6 has NativeCall, but it is not for the faint of heart. NativeCall makes calling C pretty easy, but that does not negate the difficulty of using C from a second language.. Try writing Win API

Re: unhandled target type

2024-11-15 Thread ToddAndMargo via perl6-users
On 11/12/24 22:20, ToddAndMargo via perl6-users wrote: Hi All, Windows 11-24H4  Pro After upgrading to    RakudoMoar-2024.10.01-win-x86_64-msvc.msi from    RakudoMoar-2022.06.01-win-x86_64-msvc.msi I am throwing this error: I just reported it over on Regression: unhandled target type http

Re: Is chat down for good?

2024-11-15 Thread ToddAndMargo via perl6-users
On 15 Nov 2024, at 10: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 On 11/15/24 03:07, Elizabeth Mattijsen wrote: > N

Re: Is chat down for good?

2024-11-15 Thread Elizabeth Mattijsen
No idea. But I suggest using libera.chat's own webservice: https://web.libera.chat/ > On 15 Nov 2024, at 10: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

Re: Where to report bugs?

2024-11-14 Thread ToddAndMargo via perl6-users
>> On 14 Nov 2024, at 07:32, ToddAndMargo via perl6-users wrote: >> >> Hi All, >> >> Where is the official place to report bugs to now? >> >> -T > On 11/14/24 02:54, Elizabeth Mattijsen wrote: If this is about Rakudo: https://github.com/rakudo/rakudo/issues/new It is. Thank you!

  1   2   3   4   5   6   7   8   9   10   >