Tuesday, July 28, 2009

Should I learn shell scripting or more Perl?

I moved 99% to linux only some years ago and through mostly graphical SuSE so I haven't had to go through all the hard core command line days.





I know some programming, especially Perl. Mostly I just hack together pieces of somewhat functional code into ugly scripts barely doing my job.





I recently bought 'Classic Shell Scripting' from O'Reilly because it was cheap. But I don't know. It's thick and not too exciting I think. (read first 1½ chapters)





How well do shell scripting and Perl go hand in hand? Can I do anything in Perl only and should just learn more of that? Or do they add up in synergy?

Should I learn shell scripting or more Perl?
there is nothing you can do in a shell script that you can't do in perl.





keep reading, (it's paid for!) and some of the techniques work with perl too. many are just to get around the inadequacies of sh
Reply:Shell scripting has a smaller learning curve, you can do it with out anything extra, and is probably best for small things. I don't know perl at very well, but I would say for anything bigger than a few dozen lines, or something you will use all the time, you should use perl and not shell scripts.





Shell scripts is a big list of executable files, and a file an executable has additional overheard associated with it besides its actual function. You don't want to spend all your time waiting for that overhead to get its time on the kernal when you could be running a nice perl script and get that overhead out of the way once and have the rest of the time for your code.





So basically, go with perl
Reply:Hhhhmmmm


I am member of http://www.KnowGeekz.info ...


You should join this kinda forum to know more and explore new stuff.


You can get very good help from members of the forum...


No comments:

Post a Comment