ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The main reason is that I find hard to read the code. I remember that we got a script of 300.000 lines of perl and was a pain and nobody wanted to touch it. Another reason to not use perl is that if you want to mix with other libs I found more useful libs under python and if you need to mix with c or c++ is easy than in perl.
That's probably because the programmer was being too clever by half. It's actually quite easy to write easily readable Perl code (except regular expressions, but that's true for all languages that have them). There's even a contest, or at least was, as to come up with the most obfuscated hard-to-read Perl you possibly could make.
OMG, I just found a VERY COOL ONE, you all have to run it. Just type perl, paste it in, then press return and then Control-D.
While I can appreciate obfuscated perlisms at times, I would not want to see LQ programming forum become an archive of "paste this and see what cool stuff it does!" code snippets!
Even when we know the source, we must remind random visitors to always use due caution when engaged in potentially risky activities!
One typo or changed character encoding might be the difference between an amused giggle, and a compromised or borked system!
"Okay, okay, okay ... this script ... what language was it originally written in?" Okay, so I gotta hurry-up and put on that language-hat."
(Now, please remind me, "which language-hat was it ...?")
- - -
Hmmm.... if we allow "future programmers" to actually see what 'the job' is sometimes actually 'like,' they might all decide to become "<<>>'s," instead!
Last edited by sundialsvcs; 05-03-2017 at 07:55 PM.
if you need to mix with c or c++ is easy than in perl.
This is palpably untrue.
You can actually compile a Perl engine into your C/C++ program then Perl runs in the same process (no fork()s), it basically becomes an extension of the C language.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.