LinuxQuestions.org
Review your favorite Linux distribution.
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 08-21-2011, 08:34 PM   #46
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244

Quote:
Originally Posted by Sergei Steshenko View Post
Oh, really ?! How about:


http://docs.python.org/library/array.html :

In Perl arrays are built-in, come with language, not with a module.

If you are too forgetful, let me bring you back in time to what you said:
Quote:
Originally Posted by Sergei Steshenko
Seriously, I reject Python first and foremost for lack of lexical scoping. And for lack of arrays. And for whitespaces being used to denote code blocks - and I do indent in Perl/"C".
You said "lack of arrays" is one of the reasons you reject Python. But arrays are supported in Python, both as built in lists (1D) , and a thin wrapper module (array) around C arrays. You did not specifically mention that you reject Python because it doesn't come built in like that in Perl. And you quickly change your argument in this post. And, if people finds it easier to maintain and read, then its their business. You have no reason to sound arrogant and insult their intelligence. Not sure what I am talking about? See post #20
 
Old 08-21-2011, 08:49 PM   #47
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Woodsman View Post
Thanks everybody for the responses. I get the big picture that at least for Perl and Python, there are ways to perform the same tasks that are performed in shell scripts.
Perl and Python are not the only ones. There's also Ruby.
 
Old 08-22-2011, 09:31 PM   #48
pafoo
Member
 
Registered: Jul 2011
Location: Alabama
Distribution: Red Hat/Ubuntu/Solaris
Posts: 37

Rep: Reputation: 11
Let me tell you one piece of advice. I am a Linux Sys Admin and I used to only shell script. Me and another guy I went in took it upon ourselves to "step our game up." Him with perl, me with python. Let me tell you what, within 1 month, both of us were making "scripts" that out performed a shell script by far. Think on, combining awk,sed and bash together with phenomenal error handling and full lists and dictionaries with direct access to shell commands and there results similar to $?. MUCH more readable code (python, not Perl), with the availability of an entire test sweet "IDLE" to test all lines of code as you develop it. You cant go wrong!!! By the way, I stomped ol' perl boy as he continually tried to find "There's more than one way to do it..."

Because of it I have received praise on the error handling and power of Python's simplicity over Perl/ksh/bash/awk/sed scripting!

BTW im not saying use python. Perl is a awesome and powerful language to replace shell scripting with. Anything "upper" language is better than old school shell scripting.

Last edited by pafoo; 08-22-2011 at 09:34 PM.
 
Old 08-23-2011, 01:24 AM   #49
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Quote:
Perl and Python are not the only ones. There's also Ruby.
...or PHP

I'd like to mention that any programmer can write perl code that is readable for C-, Java-, PHP-programmers without much difficulties.
 
Old 08-23-2011, 02:31 AM   #50
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by j-ray View Post
...or PHP
why do you even suggest that? PHP is a bloat, too many similar functions, no namespaces (until recently? ) ... and whole lot more problems..
 
Old 08-23-2011, 02:49 AM   #51
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Quote:
why do you even suggest that?
I know it has some disadvantages but some colleagues like it for command line jobs as well as for web stuff.

Anyway I'm making money with it so I liked to mention it as an option. Some people don't know it can be used from command line.
 
Old 08-23-2011, 05:21 AM   #52
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
PHP Hypertext Preprocessor.
Does what it says on the tin. Hardly with a good history, and not for anything else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Perl experts: I need to run shell command from perl using pipe idreesedu Programming 14 01-11-2011 04:52 PM
Python related: How to access a Perl script behind a firewall from Python? vxc69 Programming 8 12-14-2010 07:32 AM
Is there a command list which indicates the UNIX command equivalents also? Lil Linux - Newbie 5 08-05-2010 03:10 AM
Use of "Command line perl" in perl script using system command. aditya007 Linux - Newbie 4 11-29-2009 10:08 PM
How do I make python programs run without entering the command python? trist007 Programming 5 03-22-2009 08:21 PM

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

All times are GMT -5. The time now is 07:43 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