Sponsored Content
Top Forums Shell Programming and Scripting How much bash to learn compared with Perl? Post 302581302 by Corona688 on Monday 12th of December 2011 05:34:47 PM
Old 12-12-2011
Perl is very powerful because of its regular expressions, and because it has so many add-on modules available.

But Bourne shells can do things simply which Perl would make quite complex, especially when you're using external programs. I've seen many perl scripts which were just line after line after line of system() and backticks, hardly perl scripts at all -- a barely-there crust of perl holding together pure shell code. Instead of using one shell, they use dozens of shells. If you learn to program in shell, you'll at least understand why this is a bad idea.

More to the point, perl isn't a shell. You can't login to perl. If you want to administer UNIX, you have to learn how to use a shell, and it might as well be some variety of bourne; too many things use it to avoid it, like cron, at, many system init and system configuration scripts, and your own logins.

Last edited by Corona688; 12-12-2011 at 06:53 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Where can I learn Perl?

Can someone please post a link to site that teaches perl? (2 Replies)
Discussion started by: DISTURBED
2 Replies

2. Shell Programming and Scripting

Where do I start to learn PERL?

Hello, What is the best way to start learning PERL? Are there any "learn-it-yourself" websites? Beginner books? etc... Thanks, Barbara (3 Replies)
Discussion started by: blt123
3 Replies

3. Shell Programming and Scripting

How to learn Perl

Can anyone suggest homepage related to perl programming? Thank you. (11 Replies)
Discussion started by: lcfoo
11 Replies

4. Shell Programming and Scripting

Looking to learn perl

What do you suggest for someone that doesn't have any programming experience and want to learn perl? (3 Replies)
Discussion started by: bbbngowc
3 Replies

5. Shell Programming and Scripting

Any book to learn perl scripting

Hi, Please suggest me any good book to learn pearl scripting. Thanks in advance !!!!:) (5 Replies)
Discussion started by: vkvishwakarma6
5 Replies

6. UNIX for Dummies Questions & Answers

To learn PERL

Hi, Would like to learn PERL, can anyone let me know what are the useful sources... any links... good books for the beginners to start and practice? Many thanks. (3 Replies)
Discussion started by: venkatesht
3 Replies

7. Shell Programming and Scripting

Should I learn bash scripting or is it going obsolete?

Hi folks, I'm a CS students enrolled in a sysadmin class where we've been covering bash scripting for the past few weeks. I have prior knowledge in java, c++, c#, python,and some scripting languages like asp.net w/c# and php. This bash stuff seems pretty neat and a bit different than what I am... (9 Replies)
Discussion started by: KalEl
9 Replies

8. Shell Programming and Scripting

Validating uppercase/lowercase of user input with perl compared to unix folders

Hi, I need to copy files from a source directory to a destination directory in unix. I'm using the file::copy for the actual copy. The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Discussion started by: Furou
6 Replies

9. What is on Your Mind?

Book to learn Perl

Hi guys, which book are you raccomand to start learn Perl from the ground ? (1 Reply)
Discussion started by: solaris_user
1 Replies

10. UNIX for Dummies Questions & Answers

Learn bash shell scripting

I do not know shell scripting. But at work place, I have got an in and out shell scripting task. I just need to understand a very big script. Is there any tool in which I can place the script and it can tell me the meaning of the whole script? (3 Replies)
Discussion started by: lg123
3 Replies
LIBBASH(7)							  libbash Manual							LIBBASH(7)

NAME
libbash -- A bash shared libraries package. DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may want to load and use in scripts of your own. It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries. Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded using ldbash(1) must answer 4 requirments: 1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash). 2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library exports. I.e. all the function that will be usable after loading that library will be listed in that line. 3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are required for our library. I.e. every bash library that is in use in our bash library must be listed there. 4. The library must be listed (For more information, see ldbashconfig(8)). Basic guidelines for writing library of your own: 1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions. 2. Try to declare all variables intended for internal use as local. 3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with: __<library_name>_ For example, internal function myfoosort of hashstash library should be named as __hashstash_myfoosort This helps to avoid conflicts in global name space when using libraries that come from different vendors. 4. See html manual for full version of this guide. AUTHORS
Hai Zaar <haizaar@haizaar.com> Gil Ran <ril@ran4.net> SEE ALSO
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1) Linux Epoch Linux
All times are GMT -4. The time now is 10:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy