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.
learn both (at least get familiar with both), then decide.
personally, i think perl is easier for some quick and dirty scrips. Many things are assumed for you by the interpreter, and a lot of input/output "just works".
i use python most of the time though. i like the language as whole more then perl. The language lends itself to better code structure and readability. Not that you can't do that in perl, but perl will let you be a lot sloppier.
I have been using Perl for about 7 years but decided about 6 months ago to give Python a shot. I must say that I am really digging Python. If you are starting from scratch I would highly recommend Python. Perl certainly does the job but as a previous poster remarked Python seems to produce much cleaner code, especially for larger projects.
I still fall back into Perl mode if I just want to write a quick 3 liner. For anything that I plan to grow and have organized I am switching over to Python. If you have the time it can't hurt to know both of course but you might as well concentrate on one to begin with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.