Re: images in Perl/Tk

2024-03-19 Thread mick.crane
On 2024-03-19 13:29, debian-u...@howorth.org.uk wrote: There's a bug in your program above, when used for PNG or JPEG. It's a perl error and I expect you would have got an answer on perlmonks as I suggested. The error is described on https://docstore.mik.ua/orelly/perl3/tk/ch17_01.htm Look

Re: images in Perl/Tk

2024-03-19 Thread debian-user
"mick.crane" wrote: > On 2024-03-19 00:42, Michael Lange wrote: > > Hi, > > > > On Mon, 18 Mar 2024 19:23:39 + > > "mick.crane" wrote: > > > >> I try to load images with Perl/Tk but there is message, > >> "cou

Re: images in Perl/Tk

2024-03-19 Thread Gareth Evans
On Tue 19/03/2024 at 12:00, mick.crane wrote: > On 2024-03-19 00:42, Michael Lange wrote: >> Hi, >> >> On Mon, 18 Mar 2024 19:23:39 + >> "mick.crane" wrote: >> >>> I try to load images with Perl/Tk but there is message, >>> "

Re: images in Perl/Tk

2024-03-19 Thread mick.crane
On 2024-03-19 00:42, Michael Lange wrote: Hi, On Mon, 18 Mar 2024 19:23:39 + "mick.crane" wrote: I try to load images with Perl/Tk but there is message, "couldn't recognize data in image file "test.jpeg" at /usr/lib/x86_64-linux-gnu/perl5/5.38/Tk/Image.pm line

Re: images in Perl/Tk

2024-03-18 Thread Michael Lange
Hi, On Mon, 18 Mar 2024 19:23:39 + "mick.crane" wrote: > I try to load images with Perl/Tk but there is message, > "couldn't recognize data in image file "test.jpeg" at > /usr/lib/x86_64-linux-gnu/perl5/5.38/Tk/Image.pm line 21" > I've tried

Re: images in Perl/Tk

2024-03-18 Thread debian-user
"mick.crane" wrote: > I try to load images with Perl/Tk but there is message, > "couldn't recognize data in image file "test.jpeg" at > /usr/lib/x86_64-linux-gnu/perl5/5.38/Tk/Image.pm line 21" > I've tried different images/pngs/jpgs with sam

images in Perl/Tk

2024-03-18 Thread mick.crane
I try to load images with Perl/Tk but there is message, "couldn't recognize data in image file "test.jpeg" at /usr/lib/x86_64-linux-gnu/perl5/5.38/Tk/Image.pm line 21" I've tried different images/pngs/jpgs with same error. images load OK in other viewers. Installed tkpn

printing QR-codes on labels with 300dpi label printers with LaTeX (was: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping)

2024-03-09 Thread hw
On Fri, 2024-03-08 at 23:21 +0700, Max Nikulin wrote: > On 08/03/2024 12:35, hw wrote: > > On Thu, 2024-03-07 at 23:15 -0500, Jeffrey Walton wrote: > > > > > > I have a USB thermal printer for the shipping labels, > > > . > > > > This printer has

Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-08 Thread Max Nikulin
On 08/03/2024 12:35, hw wrote: On Thu, 2024-03-07 at 23:15 -0500, Jeffrey Walton wrote: I have a USB thermal printer for the shipping labels, . This printer has only 300dpi. If you print QR-codes on it make sure you can scan them: they have to

Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-08 Thread Jeffrey Walton
rmal printer for the shipping labels, > > <https://www.amazon.com/gp/product/B08V28J3JS>. > > > > I see Debian carries libbusiness-us-usps-webtools-perl. I visited the > > module's GitHub at > > <https://github.com/ssimms/business-us-usps-webtools>, but the >

Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-08 Thread Charles Curley
t;. > > I see Debian carries libbusiness-us-usps-webtools-perl. I visited the > module's GitHub at > <https://github.com/ssimms/business-us-usps-webtools>, but the > examples are on the lite side. I don't see a workflow similar to > creating and printing a shipping label. >

Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-08 Thread gene heskett
siness-us-usps-webtools-perl. I visited the module's GitHub at <https://github.com/ssimms/business-us-usps-webtools>, but the examples are on the lite side. I don't see a workflow similar to creating and printing a shipping label. My question is, can I use the module to create and print a sh

Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-07 Thread hw
om/gp/product/B08V28J3JS>. > > I see Debian carries libbusiness-us-usps-webtools-perl. I visited the > module's GitHub at > <https://github.com/ssimms/business-us-usps-webtools>, but the > examples are on the lite side. I don't see a workflow similar to > creating and printi

libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping

2024-03-07 Thread Jeffrey Walton
Hi Everyone, I need to generate some shipping labels for drop-off at the USPS post office using USPS Ground Advantage. I have a USB thermal printer for the shipping labels, <https://www.amazon.com/gp/product/B08V28J3JS>. I see Debian carries libbusiness-us-usps-webtools-perl. I v

Re: Perl module installation via CPAN and signature error

2024-01-11 Thread Vincent Lefevre
With strace, I could see the command that was executed: gpg --verify --batch --no-tty -q --logger-fd=1 --keyserver=hkp://pool.sks-keyservers.net:11371 on a temporary file, but almost equivalent to the CHECKSUMS file. Now, I can try that directly: qaa:~> gpg --verify --batch --no-tty -q

Perl module installation via CPAN and signature error

2024-01-11 Thread Vincent Lefevre
Hi, I have 2 Debian/unstable machines on the same network, with the same .cpan/CPAN/MyConfig.pm file. On one of them, I get no errors: qaa:~> cpan -i XML::RPC CPAN: HTTP::Tiny loaded ok (v0.086) CPAN: Net::SSLeay loaded ok (v1.92) CPAN: IO::Socket::SSL loaded ok (v2.084) Fetching with

Re: Feeds aren't yet dead (Was: Re: perl module listgarden)

2023-08-03 Thread Celejar
On Thu, 03 Aug 2023 21:33:24 +0100 Steve McIntyre wrote: > Andy Smith wrote: > >On Thu, Aug 03, 2023 at 06:23:15PM +, Russell L. Harris wrote: > >> On Thu, Aug 03, 2023 at 05:29:33PM +, Andy Smith wrote: > >> > On Thu, Aug 03, 2023 at 03:07:47AM +, Russell L. Harris wrote: > >> > >

Re: Feeds aren't yet dead (Was: Re: perl module listgarden)

2023-08-03 Thread Steve McIntyre
Andy Smith wrote: >On Thu, Aug 03, 2023 at 06:23:15PM +, Russell L. Harris wrote: >> On Thu, Aug 03, 2023 at 05:29:33PM +, Andy Smith wrote: >> > On Thu, Aug 03, 2023 at 03:07:47AM +, Russell L. Harris wrote: >> > > For that matter, is RSS still in use? >> > >> > $ r2e list | wc -l >>

Re: Feeds aren't yet dead (Was: Re: perl module listgarden)

2023-08-03 Thread Andy Smith
Hi Russell, On Thu, Aug 03, 2023 at 06:23:15PM +, Russell L. Harris wrote: > On Thu, Aug 03, 2023 at 05:29:33PM +, Andy Smith wrote: > > On Thu, Aug 03, 2023 at 03:07:47AM +, Russell L. Harris wrote: > > > For that matter, is RSS still in use? > > > > $ r2e list | wc -l > > 72 > >

Re: Feeds aren't yet dead (Was: Re: perl module listgarden)

2023-08-03 Thread Russell L. Harris
On Thu, Aug 03, 2023 at 05:29:33PM +, Andy Smith wrote: Hello, On Thu, Aug 03, 2023 at 03:07:47AM +, Russell L. Harris wrote: For that matter, is RSS still in use? $ r2e list | wc -l 72 Andy, I don't understand; kindly explain. I have a blog and a web site, both of which I create

Feeds aren't yet dead (Was: Re: perl module listgarden)

2023-08-03 Thread Andy Smith
Hello, On Thu, Aug 03, 2023 at 03:07:47AM +, Russell L. Harris wrote: > For that matter, is RSS still in use? $ r2e list | wc -l 72 Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting

Re: perl module listgarden

2023-08-03 Thread debian-user
"Russell L. Harris" wrote: > On Wed, Aug 02, 2023 at 03:18:12PM -0700, David Christensen wrote: > >On 8/2/23 14:03, Russell L. Harris wrote: > >>I have not used Perl for several years, and I do not know how to > >>proceed. > >>I am tryin

Re: perl module listgarden

2023-08-02 Thread Russell L. Harris
On Wed, Aug 02, 2023 at 03:18:12PM -0700, David Christensen wrote: On 8/2/23 14:03, Russell L. Harris wrote: I have not used Perl for several years, and I do not know how to proceed. I am trying to install Dan Bricklin's RSS feed generator, ListGarden. metacpan.org cannot find the listgarden

Re: perl module listgarden

2023-08-02 Thread David Christensen
On 8/2/23 14:03, Russell L. Harris wrote: I have not used Perl for several years, and I do not know how to proceed. I am trying to install Dan Bricklin's RSS feed generator, ListGarden. metacpan.org cannot find the listgarden module. Here is the output: perl listgarden.pl Can't locate

perl module listgarden

2023-08-02 Thread Russell L. Harris
I have not used Perl for several years, and I do not know how to proceed. I am trying to install Dan Bricklin's RSS feed generator, ListGarden. metacpan.org cannot find the listgarden module. Here is the output: perl listgarden.pl Can't locate ListGarden.pm in @INC (you may need to install

Re: Is perl still the No.1 language for sysadmin?

2023-04-10 Thread Tom Dial
On 4/8/23 08:19, Emanuel Berg wrote: Tom Dial wrote: Look at the use of parentheses in Lisp [...] I have thought about that - is Lisp possible without them? But how do you then know priority? I'm sure someone tried to get rid of them, but how? Its quite a few years since I had anything

Re: my immature thoughts on perl

2023-04-09 Thread Emanuel Berg
Andrew M.A. Cater wrote: > You don't want to believe that - Epimenides the Cretan > asserts that "all Cretans are liars" Face it, the Greek invented it, the Italians (Romans) perfected/spread it ... All honor to diplomacy, you are not going to expect me to say anything else, I think our

Re: my immature thoughts on perl

2023-04-09 Thread Emanuel Berg
Stefan Monnier wrote: I usually taunt people with "All generalizations suck". >>> >>> Can't it be the exception to confirm the rule? >> >> There is a barber in Crete who shaves all men who don't >> shave themselves > > You're just pointing out that *impredicative* > generalizations suck even

Re: my immature thoughts on perl

2023-04-09 Thread Andrew M.A. Cater
On Sun, Apr 09, 2023 at 11:18:14AM -0400, Stefan Monnier wrote: > >> > I usually taunt people with "All generalizations suck". > >> Can't it be the exception to confirm the rule? > > There is a barber in Crete who shaves all men who don't > > shave themselves [1]. > You don't want to believe

Re: my immature thoughts on perl

2023-04-09 Thread Stefan Monnier
>> > I usually taunt people with "All generalizations suck". >> Can't it be the exception to confirm the rule? > There is a barber in Crete who shaves all men who don't > shave themselves [1]. You're just pointing out that *impredicative* generalizations suck even more than the rest.

Re: my immature thoughts on perl

2023-04-09 Thread Emanuel Berg
tomas wrote: > There is a barber in Crete who shaves all men who don't > shave themselves [1] > https://en.wikipedia.org/wiki/Barber_paradox Yeah, but that isn't really a paradox, is it? It's like all the programs that will increase inflation :) -- underground experts united

Re: my immature thoughts on perl

2023-04-08 Thread tomas
On Sat, Apr 08, 2023 at 02:37:56PM +0200, Emanuel Berg wrote: > tomas wrote: > > >>> Perl is the best language, maybe Lisp is the best > >>> language. But everything else isn't as good. > >> > >> Every categorical generalisation is wrong. (Even t

Re: my immature thoughts on perl

2023-04-08 Thread tomas
On Sat, Apr 08, 2023 at 06:08:31AM +, davidson wrote: [...] > Clippy 2.0 has a hype train, and my BS detector is blazing like a > forest fire. Thank you for that one: "ChatGPT: Clippy Strikes Back". Cheers -- t signature.asc Description: PGP signature

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Max Nikulin
On 08/04/2023 23:20, Greg Wooledge wrote: One of the basic goals of structured programming languages was to eliminate reliance on line numbers -- which were the hallmark of many other languages in use at the time. or reliance on labels (represented by numbers) for goto destination as in early

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread John Conover
Andy Smith writes: > > It is almost as if one small set of metrics aren't enough to decide, > for everyone, in every case, which language should be used! > > Similarly, the idea posted in this thread to objectively quantify > every feature a language can possibly have and then see which one >

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Andy Smith
Hello, On Mon, Apr 03, 2023 at 08:20:36PM +0200, Thomas Schmitt wrote: > 1.00 is best, higher numbers indicate wastefulness. > > C has 1.00 for energy consumption and for processing time. > For memory needs it's at rank 3 with 1.17. > Perl has 79.58 for energy (rank 27 of 27),

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
rhkramer wrote: >> I was never a fan of Dijkstra's "Go To Statement Considered >> Harmful" and perceive modern spaghetti inheritence as more >> obscure than any goto noodling. > > Good point! But that's not modern :) -- underground experts united https://dataswamp.org/~incal

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread rhkramer
On Saturday, April 08, 2023 01:44:48 PM Thomas Schmitt wrote: > I was never a fan of Dijkstra's "Go To Statement Considered Harmful" > and perceive modern spaghetti inheritence as more obscure than any goto > noodling. Good point! -- rhk (sig revised 20230312 -- modified first paragraph, some

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Thomas Schmitt
Hi, Greg Wooledge wrote: > Yes, "structured programming" was the term used. Structured > programming uses functions, while loops, if/then/else statements, and > so on, instead of "GOTO 1230" type commands, to control a program's flow. Like with Rocky Mountain BASIC of HP 9000 machines in

Re: my immature thoughts on perl

2023-04-08 Thread Emanuel Berg
>>> Ha, but can't we do better, I would like all the >>> properties (stuff possible to express and do) in >>> a programming language encoded, and then count them to >>> determine what language is the most powerful. >> >> We know that except for some particularly limited >> languages, they'll all

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
> Yes, "structured programming" was the term used. > Structured programming uses functions, while loops, > if/then/else statements, and so on, instead of "GOTO 1230" > type commands, to control a program's flow. > > One of the basic goals of structured programming languages > was to eliminate

Re: my immature thoughts on perl

2023-04-08 Thread Emanuel Berg
Stefan Monnier wrote: >> Ha, but can't we do better, I would like all the properties >> (stuff possible to express and do) in a programming >> language encoded, and then count them to determine what >> language is the most powerful. > > We know that except for some particularly limited languages,

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Greg Wooledge wrote: > Yes, "structured programming" was the term used. > Structured programming uses functions, while loops, > if/then/else statements, and so on, instead of "GOTO 1230" > type commands, to control a program's flow. > > One of the basic goals of structured programming languages >

Re: my immature thoughts on perl

2023-04-08 Thread Stefan Monnier
> Ha, but can't we do better, I would like all the properties > (stuff possible to express and do) in a programming language > encoded, and then count them to determine what language is the > most powerful. We know that except for some particularly limited languages, they'll all mutually

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Greg Wooledge
On Sat, Apr 08, 2023 at 10:23:15AM -0400, rhkra...@gmail.com wrote: > My first language was Algol, a language that wrote out keywords and such so > that it was easier to understand (for me) what a given program was doing. It > was also structured (if that is the right word), having things like

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
davidson wrote: > On Sat, 8 Apr 2023 Emanuel Berg wrote: > >> Tom Dial wrote: >> > Look at the use of parentheses in Lisp [...] I have thought about that - is Lisp possible without them? But how do you then know priority? I'm sure someone tried to get rid of them, but how?

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Jeffrey Walton wrote: > Here are three more data points. > >* Emacs - 41 CVEs since 2000 [1] >* Vi - 61 CVEs since 1999 [2] >* Vim - 656 CVEs since 2001 [3] > > I'm not sure how many CVEs overlap for Vim due to Vi. Hm ... what does this stat indicate? :O Haha why do Vim has so many?

Re: my immature thoughts on perl

2023-04-08 Thread Emanuel Berg
Andy Smith wrote: > That is, why are you asking people to convince you to like > Perl? There are lots of languages and you appear to have > found one you like better. Maybe there is no answer in particular why Perl has it's trajectory. Maybe it can't be expressed in a formula. But I

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Stefan Monnier wrote: >> Here are three more data points. >> >>* Emacs - 41 CVEs since 2000 [1] >>* Vi - 61 CVEs since 1999 [2] >>* Vim - 656 CVEs since 2001 [3] >> >> I'm not sure how many CVEs overlap for Vim due to Vi. > > I don't know what the number of CVEs tells us about > a

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
far more proficient than I, but one of the things > that ultimately drove me from Perl to Python is the striking > contrast between Perl's TIMTOWTDI with Python's "There > should be one -- and preferably only one -- obvious way to > do it." Maybe good programmers like TIMTOWT

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread davidson
On Sat, 8 Apr 2023 Emanuel Berg wrote: Tom Dial wrote: Look at the use of parentheses in Lisp [...] I have thought about that - is Lisp possible without them? But how do you then know priority? I'm sure someone tried to get rid of them, but how? Its quite a few years since I had anything

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
debian-user wrote: > But cropping and ignoring the actual point of Stefan's mail > rather misses the point and insults him. Those don't work on him anyway :) -- underground experts united https://dataswamp.org/~incal

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Greg Wooledge wrote: > The word "via" appears in all three of your selections. > That makes me think that the web site is using some kind of > a "close-enough match" heuristic, and is (unhelpfully) > matching "via" as close enough to "vim". It's called the typographic attack vector ... --

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Jeffrey Walton wrote: > The Vim folks had a bad week this week: > https://ubuntu.com/security/notices/USN-5995-1 . There were > 30 CVEs fixed this week. What's the deal with that LOL :) -- underground experts united https://dataswamp.org/~incal

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Tom Dial wrote: >>> Look at the use of parentheses in Lisp [...] >>> >> I have thought about that - is Lisp possible without them? >> But how do you then know priority? I'm sure someone tried >> to get rid of them, but how? > > Its quite a few years since I had anything to do with Lisp, > and

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread rhkramer
the early days of programming, languages were written based on what the language designer was familiar with (and what he did or didn't like) about those languages. Without having much familiarity with Perl, I might guess that Larry Wall was familiar with things like awk, sed, bash and such, and w

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Tom Dial wrote: >>> Look at the use of parentheses in Lisp [...] >> >> I have thought about that - is Lisp possible without them? >> But how do you then know priority? I'm sure someone tried >> to get rid of them, but how? > > Its quite a few years since I had anything to do with Lisp, > and even

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Joel Roth wrote: > There is a new object system being cooked up, based on > decades of experience with OO in perl and other languages. > > There is already more than enough OO goodness for me to get > my work done :-) Guys, word on the street the former OO guys at C++ don't spea

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Eduard Bloch wrote: > I don't think so, Sir! Python has certain advantages but the > "meaningful whitespace" is IMHO not one of them. > > That said, I have been an active Perl user ~20y ago My rule is a couple of weeks is enough to get "damaged" from it, some of

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
davidson wrote: >>> Here's a bash version. It's not fast, but at least it >>> doesn't invoke perl repeatedly. (If you're going to invoke >>> perl *at all* you should simply rewrite the whole thing in >>> perl, IMHO, or at worst have a short sh script that

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Greg Wooledge wrote: >>>>> I am surprised this thread has not started >>>>> a mini-flame war. >>>> >>>> We are working on it ... >>> >>> Maybe i can help by stating that Perl and Python are among >>> the lar

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Michel Verdier wrote: > #!/usr/bin/perl -w > > use strict; > > # echo $PATH | tr ':' '\n' | perl -MFile::Slurp -ne > 'chomp;@e=read_dir($_,prefix=>1); print map "$_\n",@e'|xargs file|perl -pe > 's/\S+\s+//'|grep -v 'symbolic link'|perl -pe 's/, dynamically &

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Greg Wooledge
On Sat, Apr 08, 2023 at 02:57:42PM +0200, Emanuel Berg wrote: > Thomas Schmitt wrote: > > >>> I am surprised this thread has not started > >>> a mini-flame war. > >> > >> We are working on it ... > > > > Maybe i can help by stating

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
Thomas Schmitt wrote: >>> I am surprised this thread has not started >>> a mini-flame war. >> >> We are working on it ... > > Maybe i can help by stating that Perl and Python are among > the largest resource hogs known in the world of languages. What,

Re: Is perl still the No.1 language for sysadmin?

2023-04-08 Thread Emanuel Berg
But it is still very much within bounds of reason both up and down ... Okay, guys, enough with the theory here, I'm gonna tell you the truth right now. Let's see, Python has much faster devel. Perl is cool for text, it also belongs to another world. Lisp is like a trippy language, in theory and i

Re: my immature thoughts on perl

2023-04-08 Thread Emanuel Berg
coreyh wrote: >>> I think you should use Ruby if you like Ruby better! >> >> Perl is the best language, maybe Lisp is the best language. >> But everything else isn't as good. > > The Language Wars Are Over: ChatGPT Won > https://bourgoin.dev/posts/program

Re: my immature thoughts on perl

2023-04-08 Thread Emanuel Berg
tomas wrote: >>> Perl is the best language, maybe Lisp is the best >>> language. But everything else isn't as good. >> >> Every categorical generalisation is wrong. (Even this one >> :) ) > > I usually taunt people with "All generalizations suck&q

Re: my immature thoughts on perl

2023-04-08 Thread davidson
On Sat, 8 Apr 2023 to...@tuxteam.de wrote: On Sat, Apr 08, 2023 at 07:06:28AM +0800, cor...@free.fr wrote: On 08/04/2023 03:28, Emanuel Berg wrote: Andy Smith wrote: I think you should use Ruby if you like Ruby better! Perl is the best language, maybe Lisp is the best language

Re: my immature thoughts on perl

2023-04-07 Thread tomas
On Sat, Apr 08, 2023 at 07:06:28AM +0800, cor...@free.fr wrote: > On 08/04/2023 03:28, Emanuel Berg wrote: > > Andy Smith wrote: > > > > > I think you should use Ruby if you like Ruby better! > > > > Perl is the best language, maybe Lisp is the best lan

Re: my immature thoughts on perl

2023-04-07 Thread tomas
On Fri, Apr 07, 2023 at 08:09:12PM +, Andrew M.A. Cater wrote: > On Fri, Apr 07, 2023 at 09:28:59PM +0200, Emanuel Berg wrote: > > Andy Smith wrote: > > > > > I think you should use Ruby if you like Ruby better! > > > > Perl is the best langu

Re: Is perl still the No.1 language for sysadmin?

2023-04-07 Thread davidson
On Mon, 3 Apr 2023 Michel Verdier wrote: Le 3 avril 2023 Greg Wooledge a écrit : Here's a bash version. It's not fast, but at least it doesn't invoke perl repeatedly. (If you're going to invoke perl *at all* you should simply rewrite the whole thing in perl, IMHO, or at worst have a short sh

Re: my immature thoughts on perl

2023-04-07 Thread coreyh
On 08/04/2023 03:28, Emanuel Berg wrote: Andy Smith wrote: I think you should use Ruby if you like Ruby better! Perl is the best language, maybe Lisp is the best language. But everything else isn't as good. The Language Wars Are Over: ChatGPT Won https://bourgoin.dev/posts/programming

Re: my immature thoughts on perl

2023-04-07 Thread Andrew M.A. Cater
On Fri, Apr 07, 2023 at 09:28:59PM +0200, Emanuel Berg wrote: > Andy Smith wrote: > > > I think you should use Ruby if you like Ruby better! > > Perl is the best language, maybe Lisp is the best language. > But everything else isn't as good. > Every categorical genera

Re: my immature thoughts on perl

2023-04-07 Thread Emanuel Berg
Andy Smith wrote: > I think you should use Ruby if you like Ruby better! Perl is the best language, maybe Lisp is the best language. But everything else isn't as good. -- underground experts united https://dataswamp.org/~incal

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Greg Wooledge
On Wed, Apr 05, 2023 at 01:39:27PM +0200, to...@tuxteam.de wrote: > On Wed, Apr 05, 2023 at 01:37:31PM +0200, Nicolas George wrote: > > Greg Wooledge (12023-04-05): > > > bash has that, too -- you just have to enable it (shopt -s globstar), > > > as it's not enabled by default. > > > > Ah, bash

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Nicolas George
to...@tuxteam.de (12023-04-05): > It does have <(...), too. <(…) and >(…) are quite common, =(…) is significantly rarer. Regards, -- Nicolas George

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread tomas
On Wed, Apr 05, 2023 at 01:37:31PM +0200, Nicolas George wrote: > Greg Wooledge (12023-04-05): > > bash has that, too -- you just have to enable it (shopt -s globstar), > > as it's not enabled by default. > > Ah, bash has recursive globbing, that is good to know. It does not have > glob

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Nicolas George
Greg Wooledge (12023-04-05): > bash has that, too -- you just have to enable it (shopt -s globstar), > as it's not enabled by default. Ah, bash has recursive globbing, that is good to know. It does not have glob qualifiers nor temp file process substitution, AFAICS, though. Glob qualifiers is

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Greg Wooledge
On Wed, Apr 05, 2023 at 12:01:50PM +0200, Nicolas George wrote: > 2. If you are relying on nonstandard shell constructs, then go directly > for zsh and use recursive globbing and glob patterns. bash has that, too -- you just have to enable it (shopt -s globstar), as it's not enabled by default.

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Nicolas George
Michael (12023-04-05): > out of curiosity, why not omit xargs altogether and do someting like: > > #!/bin/bash > [...] >printf '%s\0' "$d"/* > done | >while read -r -d '' line; do > [...] > > or do i miss something? 1. Your script will execute the command once per argument, xargs will

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Michael
On Wednesday, 5 April 2023 11:48:35 CEST, Michael wrote: or do i miss something? yes i did!!! sorry, please ignore my previous post! greetings...

Re: Is perl still the No.1 language for sysadmin?

2023-04-05 Thread Michael
On Monday, 3 April 2023 22:03:59 CEST, Greg Wooledge wrote: With this option, you can supply a stream of NUL-delimited filenames to xargs -0, and process them safely. No explosions will occur, no matter what filenames are passed. out of curiosity, why not omit xargs altogether and do someting

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Celejar
is thread are certainly far more proficient than I, but one of the things that ultimately drove me from Perl to Python is the striking contrast between Perl's TIMTOWTDI with Python's "There should be one -- and preferably only one -- obvious way to do it." Maybe good programmers like TI

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread local10
Apr 4, 2023, 13:40 by a...@strugglers.net: > Turns out though ChatGPT is--as virtually all ML code--written > in Python, that's at least according to Wikipedia and not too > surprising. There you go. Depending on what you make of it, > there may not come much after Python > I see, thanks.

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Tue, Apr 4, 2023 at 1:37 PM Greg Wooledge wrote: > > On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote: > > But cropping and ignoring the actual point of Stefan's mail rather > > misses the point and insults him. For example, three CVEs chosen at > > random from the

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread David Wright
On Tue 04 Apr 2023 at 13:37:27 (-0400), Greg Wooledge wrote: > On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote: > > But cropping and ignoring the actual point of Stefan's mail rather > > misses the point and insults him. For example, three CVEs chosen at > > random from

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Greg Wooledge
On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote: > But cropping and ignoring the actual point of Stefan's mail rather > misses the point and insults him. For example, three CVEs chosen at > random from the 'vim' list: > > CVE-2010-3481 Multiple SQL injection

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread debian-user
Jeffrey Walton wrote: > On Tue, Apr 4, 2023 at 9:46 AM Stefan Monnier > wrote: > > > > > Here are three more data points. > > > > > >* Emacs - 41 CVEs since 2000 [1] > > >* Vi - 61 CVEs since 1999 [2] > > >* Vim - 656 CVEs since 2001 [3] > > > > > > I'm not sure how many CVEs

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Tue, Apr 4, 2023 at 9:46 AM Stefan Monnier wrote: > > > Here are three more data points. > > > >* Emacs - 41 CVEs since 2000 [1] > >* Vi - 61 CVEs since 1999 [2] > >* Vim - 656 CVEs since 2001 [3] > > > > I'm not sure how many CVEs overlap for Vim due to Vi. > > I don't know what

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Stefan Monnier
> Here are three more data points. > >* Emacs - 41 CVEs since 2000 [1] >* Vi - 61 CVEs since 1999 [2] >* Vim - 656 CVEs since 2001 [3] > > I'm not sure how many CVEs overlap for Vim due to Vi. I don't know what the number of CVEs tells us about a project, but the above additionally

Re: my immature thoughts on perl

2023-04-04 Thread Andy Smith
ng this in my spare time. That is, why are you asking people to convince you to like Perl? There are lots of languages and you appear to have found one you like better. Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Andy Smith
Hello, On Tue, Apr 04, 2023 at 05:35:04AM +0200, local10 wrote: > Apr 4, 2023, 00:16 by in...@dataswamp.org: > > Andy Smith wrote: > > > >> The argument being responded to is roughly that "a popular > >> AI coding assistant is written in Python, and Python is > >> a Turing-complete language,

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Mon, Apr 3, 2023 at 1:31 PM Emanuel Berg wrote: > > Jeffrey Walton wrote: > > >> I saw many commands in /bin and /usr/bin are written by > >> perl. is perl still the first choice for sysadmin on linux? > > > > I am surprised this thread has not start

Re: my immature thoughts on perl

2023-04-04 Thread Ken Peng
to...@tuxteam.de wrote: I think watching carefully Tcl's evolution teaches a lot about languages, the type of design decisions going into them and their (changing) context. I was surprised to see many people here still use TCL. Many years ago I used this language for sysadmin jobs. It was

Re: my immature thoughts on perl

2023-04-04 Thread tomas
On Tue, Apr 04, 2023 at 07:12:05AM -0400, Greg Wooledge wrote: > On Tue, Apr 04, 2023 at 06:50:02AM +0200, to...@tuxteam.de wrote: > > In Tcl, OTOH, EIAS [...] > The introduction of the {*} operator eliminated a lot of the need for > eval. Instead of [...] Thanks for the reminder :) I think

Re: my immature thoughts on perl

2023-04-04 Thread Greg Wooledge
On Tue, Apr 04, 2023 at 06:50:02AM +0200, to...@tuxteam.de wrote: > In Tcl, OTOH, EIAS (Everything Is A String), so you've got > to eval strings (don't take me too seriously: modern Tcl > cheats, and it's more "Everything looks like a string", > but I disgress). The introduction of the {*}

Re: my immature thoughts on perl

2023-04-04 Thread Vincent Lefevre
; > scala> List(1,2,3,4).map{ _+1 }.reduce{_+_} > > res1: Int = 14 > > > In perl there is no interactive shell [...] > > perl -le 'print eval $_ while <>' https://metacpan.org/pod/Shell::Perl https://stackoverflow.com/questions/73667/how-can-i-start-an-interactive-c

Re: my immature thoughts on perl

2023-04-04 Thread john doe
On 4/4/23 04:35, cor...@free.fr wrote: Hello list, Would it be possible to refrain from using the list for OT stuff. Your Perl threads are generating traffic that are not useful. -- John Doe

Re: my immature thoughts on perl

2023-04-03 Thread tomas
On Tue, Apr 04, 2023 at 11:52:57AM +0800, cor...@free.fr wrote: [...] > I heard in perl never 'eval' a string. :) Never say never :) That said... there are better things to eval in Perl than a string, so if you have the choice, think twice. But you have got to think anyway if

Re: my immature thoughts on perl

2023-04-03 Thread Will Mengarini
* cor...@free.fr [23-04/04=Tu 10:35 +0800]: > For instance, in ruby (irb) this is quite smooth: > irb(main):001:0> [1,2,3,4].map{|x|x+1}.reduce{|x,y|x+y} > => 14 > > And in scala (shell): > scala> List(1,2,3,4).map{ _+1 }.reduce{_+_} > res1: Int = 14 > In p

  1   2   3   4   5   6   7   8   9   10   >