Re: IO::Socket::INET timeout?

2024-01-20 Thread William Michels via perl6-users
Hi Paul, Did you get any resolution on this? I've only found these links: https://docs.raku.org/type/IO/Socket/INET https://stackoverflow.com/questions/72639883/how-to-deal-with-exceptions-in-iosocketinet I imagine a solution is possible using a Supply, but I haven't gotten there yet:

Re: run on regex line?

2024-01-20 Thread William Michels via perl6-users
Just want to elaborate on the two different ways of combining statements mentioned earlier. 1A. If you're using `-pe` command line flags, you use `s///` and combine statements with `;` semicolon: ~$ echo 'roses are red' | raku -pe 's/roses/lilacs/; s/red/blue/' lilacs are blue 1B. Using

Re: run on regex line?

2024-01-20 Thread Richard Hainsworth
Todd, You could use Elizabeth Mattijsen's App-rak. It's a Raku utility that does grep, sed, awk. Richard On 20/01/2024 10:53, ToddAndMargo via perl6-users wrote: On 1/20/24 01:42, William Michels via perl6-users wrote: On Jan 19, 2024, at 23:49, ToddAndMargo via perl6-users wrote: Hi

Re: run on regex line?

2024-01-20 Thread ToddAndMargo via perl6-users
On 1/20/24 01:42, William Michels via perl6-users wrote: On Jan 19, 2024, at 23:49, ToddAndMargo via perl6-users wrote: Hi All, Can I do a run on line with a regex like I just did with sed? $ zbarimg Screenshot.png | sed -e 's/.*?secret=//' -e 's/&.*//' Usually I just do two lines in

Re: run on regex line?

2024-01-20 Thread William Michels via perl6-users
> On Jan 19, 2024, at 23:49, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Can I do a run on line with a regex like I > just did with sed? > > $ zbarimg Screenshot.png | sed -e 's/.*?secret=//' -e 's/&.*//' > > Usually I just do two lines in Raku. > > Many thanks, > -T Hi Todd,