LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2022, 12:02 PM   #1
biterr
LQ Newbie
 
Registered: Nov 2021
Location: Balkan
Distribution: Manjaro
Posts: 11

Rep: Reputation: 0
Never heard of Perl?


You must try it! It's excellent!
 
Old 05-12-2022, 01:32 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,689

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Perl 4, 5, or 6?

Larry started it in 1987, it is not new.
 
1 members found this post helpful.
Old 05-12-2022, 01:35 PM   #3
biterr
LQ Newbie
 
Registered: Nov 2021
Location: Balkan
Distribution: Manjaro
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wpeckham View Post
Perl 4, 5, or 6?

Larry started it in 1987, it is not new.
6 one is still in the work soo I think to latest stable one, 5th.
 
Old 05-12-2022, 01:55 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,699

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by biterr View Post
6 one is still in the work soo I think to latest stable one, 5th.
Nope, sorry. Perl 6 is a new language called 'Raku'; renamed that in 2019, so three years ago:
https://www.raku.org/

And it's very stable; Perl 5 has been around a LONG time.
 
3 members found this post helpful.
Old 05-12-2022, 04:02 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
"Perl 6 / Raku" died quietly. "Perl 7" picked up where "Perl 5" left off.

Perl (5/7 ...) is a very "quirky" language, clearly showing its age and its provenance, but which nonetheless has one very big asset going for it: the CPAN contributed library, which contains modules for just about every purpose imaginable. As these modules install, they run a series of self-tests on your computer and they will not install if any of those tests fail. It is by far the largest such library that I am aware of.

Unlike (specifically ...) "PHP," features are not "built in" to the language: they are provided by CPAN modules. The core interpreter is positively tiny. (Naturally, CPAN modules can avail themselves of the services of binary shared libraries, and they often do.)

The interpreter itself is clean and efficient, but the built-in language does not contain many features that you might be used to. However, CPAN authors have managed to use the language itself to completely redefine the language ... for example, Moose.

Language aficionados refer to it as "The Swiss Army® Knife of Pragmatic Programming," and there is something to be said for that assessment.

Last edited by sundialsvcs; 05-12-2022 at 04:07 PM.
 
Old 05-12-2022, 04:46 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,699

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by sundialsvcs View Post
"Perl 6 / Raku" died quietly. "Perl 7" picked up where "Perl 5" left off.

Perl (5/7 ...) is a very "quirky" language, clearly showing its age and its provenance, but which nonetheless has one very big asset going for it: the CPAN contributed library, which contains modules for just about every purpose imaginable. As these modules install, they run a series of self-tests on your computer and they will not install if any of those tests fail. It is by far the largest such library that I am aware of.

Unlike (specifically ...) "PHP," features are not "built in" to the language: they are provided by CPAN modules. The core interpreter is positively tiny. (Naturally, CPAN modules can avail themselves of the services of binary shared libraries, and they often do.)

The interpreter itself is clean and efficient, but the built-in language does not contain many features that you might be used to. However, CPAN authors have managed to use the language itself to completely redefine the language ... for example, Moose.

Language aficionados refer to it as "The Swiss Army® Knife of Pragmatic Programming," and there is something to be said for that assessment.
Agreed, and it is typically my go-to, along with python. The flexibility and ease of use is great. Being able to compile it to a stand-alone executable is a thing, too.
 
Old 05-12-2022, 09:02 PM   #7
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Rep: Reputation: 3
Try TCL and may be you will change your mind.

Last edited by PartiZan; 05-12-2022 at 09:04 PM.
 
Old 05-13-2022, 10:10 AM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,689

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Quote:
Originally Posted by PartiZan View Post
Try TCL and may be you will change your mind.
The wonderful think about TK/TCL is that it can be integrated into PERL, C, C++, or almost any other code in multiple effective ways to enhance the program. That, and TK/TCL is incredibly portable and consistent in look and feel.


I prefer pure PERL 5 (Perl 6 is a standard, ROKU was only a single implementation of it, parrot was another, it is not dead. Yet. It is a total departure for Wall as compared to PERL up through version 5, a front end language that can generate object for multiple back ends including the JRE! )

I prefer not to use modules from CPAN. They are a fast and easy way to add capability without having to code it yourself, but then you lack control over how it works. I like to kill my OWN bugs without inviting foreign bugs to come calling! Despite that attitude even I have used CPAN and modules loaded from it from time to time. I suspect it might be addictive. ;-)
 
Old 05-13-2022, 01:19 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Perl-6 nee Roku died because it wasn't Perl. It was not 100% backward-compatible with the literally hundreds of millions of lines of production code that had already been written and deployed. Therefore, it was useless.

Furthermore, it tried to piggyback off of existing runtime engines like Java's JRE, but it did not own those engines and therefore could not control nor even influence their futures. If you want to write something that runs on a JRE, write the thing in Java.

If you create an entirely-new language, even if you are persuaded that it's the greatest thing since sliced bread and that it should properly make everyone's socks roll up and down, "don't call it Perl, because it's not." New programming languages are invented all the time. Some succeed; some don't. But they don't represent themselves to be what they aren't.

Last edited by sundialsvcs; 05-13-2022 at 01:25 PM.
 
Old 05-13-2022, 05:36 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,689

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Quote:
Originally Posted by sundialsvcs View Post
Perl-6 nee Roku died because it wasn't Perl. It was not 100% backward-compatible with the literally hundreds of millions of lines of production code that had already been written and deployed. Therefore, it was useless.

Furthermore, it tried to piggyback off of existing runtime engines like Java's JRE, but it did not own those engines and therefore could not control nor even influence their futures. If you want to write something that runs on a JRE, write the thing in Java.

If you create an entirely-new language, even if you are persuaded that it's the greatest thing since sliced bread and that it should properly make everyone's socks roll up and down, "don't call it Perl, because it's not." New programming languages are invented all the time. Some succeed; some don't. But they don't represent themselves to be what they aren't.
None of your made up rules have any power to restrict the creators of the languages.
Perl 6 was SUPPOSED to be a total departure, and is. Larry has expressed some regret that he held onto the name, but many of us are not at all disturbed by that. He renamed it in 2016 I believe, just to address that issue. RAKU is not dead, and since it is a specification rather than code has been implemented multiple times in multiple languages for at least THREE back ends, one of which was written specifically to serve it. (Do specifications every really die? I am looking at you IEEE RS-422 and RS-232 specs!)

Suggested references: https://en.wikipedia.org/wiki/Raku_(...ming_language) and links, and of course https://design.raku.org/.



BTW: JRE is only one of the runtime back ends

Last edited by wpeckham; 05-13-2022 at 05:38 PM.
 
1 members found this post helpful.
Old 05-13-2022, 06:17 PM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
As I said, you can implement any "brand-new language" that you wish, and maybe it will be accepted and become widely used, as Perl itself was. But, don't call it "Perl."

You might look back on your first language project as it has since evolved and wish that you had done it differently, but you can't change that now. If you start on a brand-new language, it's a brand-new day. If millions of lines of software have now been written in your first language, the only thing that matters is that it all continues to run. (I wish the "PHP" team would remember that ... as they "deprecate" language features and replace them with an incompatible something that isn't any better.)

Last edited by sundialsvcs; 05-13-2022 at 06:19 PM.
 
Old 05-13-2022, 06:40 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
This?

https://atpearl.com/
 
Old 05-13-2022, 11:50 PM   #13
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Rep: Reputation: 3
Quote:
Originally Posted by wpeckham View Post
The wonderful think about TK/TCL is that it can be integrated into PERL, C, C++, or almost any other code in multiple effective ways to enhance the program. That, and TK/TCL is incredibly portable and consistent in look and feel.


I prefer pure PERL 5 (Perl 6 is a standard, ROKU was only a single implementation of it, parrot was another, it is not dead. Yet. It is a total departure for Wall as compared to PERL up through version 5, a front end language that can generate object for multiple back ends including the JRE! )

I prefer not to use modules from CPAN. They are a fast and easy way to add capability without having to code it yourself, but then you lack control over how it works. I like to kill my OWN bugs without inviting foreign bugs to come calling! Despite that attitude even I have used CPAN and modules loaded from it from time to time. I suspect it might be addictive. ;-)
TCL is very underestimated language. This is question of choice, but TCL is amazing for me with also bunch of libraries. It's very flexible and extendible. If performance is not a bottleneck, TCL can be a good pick.

Perl, well, I always forget its syntax.

Last edited by PartiZan; 05-13-2022 at 11:54 PM.
 
Old 05-14-2022, 06:32 AM   #14
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,689

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Quote:
Originally Posted by PartiZan View Post
TCL is very underestimated language. This is question of choice, but TCL is amazing for me with also bunch of libraries. It's very flexible and extendible. If performance is not a bottleneck, TCL can be a good pick.

Perl, well, I always forget its syntax.
The thing different about PERL (up to v5) is that it was written to be very forgiving. If you forget the syntax you used before, try something that makes sense and it will probably do what you intend. There are a few basic things like the naming of variables that you really have to get correct, but much of the logic can be done multiple ways. It was designed to ALLOW, rather than FORCE, coders choices. (Variable TYPE translation is easier and makes more sense in PERL than in most languages, but does require that you pay attention so that you do not do conversions inadvertently.)

I agree with you about TCL: it is severely underutilized. It is the easiest way to get consistent look and feel for your code across platforms. And, frankly, it does not suck at performance for most things.
 
2 members found this post helpful.
Old 05-14-2022, 08:26 AM   #15
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
@wpeckham: "Perl 7" simply skipped over "Raku" and continued right where "Perl 5" left off. The reality of Perl is that it did not and never will "dramatically change course." It is doomed to remain backward-compatible with itself ... which, as I've said, PHP repeatedly did not do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: VirtualBox: The best virtualization program you've never heard of LXer Syndicated Linux News 0 11-09-2007 05:30 AM
LXer: Top Five Open Source Business Models You Never Heard Of LXer Syndicated Linux News 0 07-03-2007 06:16 AM
Questions regarding Solaris 9 Version 8 ???? Never heard of this before... as400 Solaris / OpenSolaris 6 05-04-2007 10:05 AM
Ever heard of Alinux and HOW do you burn a 800mb CD I've never heard of one BiPolarPenguin General 4 12-19-2006 08:56 PM
LXer: Loan Linux Your Larynx - Let Your Voice Be Heard…No, REALLY Heard LXer Syndicated Linux News 0 01-29-2006 11:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration