Results 1 to 6 of 6
Hi All,
I wonder what people opinions are regarding the effort required to learn shell programming (i use bash), versus Perl. I write verilog code for a living so do ...
- 06-05-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 2
Perl or Shell programming?
Hi All,
I wonder what people opinions are regarding the effort required to learn shell programming (i use bash), versus Perl. I write verilog code for a living so do lots of things with text files. I would assume that Perl is the more difficult to learn, but it has more features. I am relatively familiar with a few different languages, but i wouldn't say particularly proficient in any of them. I know enough to hack most source code to do what i want it to. I am probably leaning towards perl, thinking that it will be more useful to know away from the shell - but i would like peoples opinions on this.
Cheers,
Sean
- 06-05-2007 #2
I think Perl would overall be more useful, but if you are only doing small stuff in Linux, then Shell Scripting should be fine. I am no expert on either, just played around with them, so take this with a grain of salt.
Dan
- 06-05-2007 #3
I don't think Perl would be as hard to learn as you think it is, especially if you have experience with other languages. In fact, this website has a very easy-to-learn set of tutorials that will teach you Perl from scratch. The first one is located here. I would go with Perl just because it's a little bit more flexible. There are modules built for it that allow you to do just about anything you want. Bash is invaluable, especially in a Linux environment but it's confined mostly to system administration tasks. Perl can encompass a wider range of jobs.
- 06-06-2007 #4
i vote for perl....
...i know shell programming...but i guess perl will be much more useful ...so first try perl and then learn shell too....because shell script is very powerful one
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 06-06-2007 #5Linux User
- Join Date
- Aug 2006
- Posts
- 458
IMO, learn to use the shell. The shell is so powerful and abundance with ready installed tools. try to get to know them...at least before you embark on other language tools...
- 06-06-2007 #6Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
At the training center where I worked, we showed the students that shell programming was relatively easy during the Intro to *nix courses.
The next course, Intermediate *nix and Shell Programming, concentrated on the scripting and regular expressions.
We then recommended the perl courses if students needed to process large text files, or to do a lot of system administration work, especially in a networked environment.
We required some programming experience for perl, but not for shell.
Best wishes ... cheers, drl"Why should you learn shell programming? Because often,
medium-sized to large problems can be decomposed into smaller
pieces, each of which is amenable to being solved with one of the
Unix tools. A shell script, when done well, can often solve a
problem in a mere fraction of the time it would take to solve the
same problem using a conventional language such as C or C++. It
is also possible to make shell scripts portable -- i.e. usable
across a range of Unix and POSIX-compliant systems, with little
or no modification."
Classic Shell Programming, Robbins & Beebe, O'Reilly, 2005Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote