Re: Shell scripting VS perl



kenneho staggered into the Black Sun and said:
Are there any guidelines to which automation problems should be solved
using shell scripts, and which problems should [be] [solved] with
perl?

If it has to be run before /usr is mounted, use shell. If it mostly
involves invoking external programs, or you can do it in less than 40
lines, use shell. If it'd be a complete pain to do it in shell, use
Perl. If none of these things apply, then use whatever you want, just
take care to put in comments and document the script so that you don't
say, "What was I thinking?" 6 months later.

There are not huge numbers of guidelines for this sort of thing because
the number of problems out there is so large, and everyone's approach to
those problems is different. The previous paragraph worked for me.
YMMV.

--
"Cheer up, things could be worse." So I cheered up, and sure enough,
things got worse.
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: Unexpected result from grep
    ... I'd worry about whether I should be using the shell at all. ... as big a deal as Perl. ... Most people can puzzle out even a complicated shell script and also ... seem to prefer ksh and it sure seems like a better shell to me. ...
    (comp.unix.tru64)
  • Re: Unexpected result from grep
    ... I'd worry about whether I should be using the shell at all. ... as big a deal as Perl. ... Most people can puzzle out even a complicated shell script and also ... seem to prefer ksh and it sure seems like a better shell to me. ...
    (comp.unix.shell)
  • Re: ActiveState: Cant spawn "cmd.exe"?
    ... >> When testing with ActiveState perl what shell are you running in? ... Normally, perl is built using MinGW in the cmd.exe shell, following the ... ActiveState perl, too) in a bash shell, though I've not personally done ...
    (comp.lang.perl.misc)
  • Re: how to easily determine shell script is running in background from within script
    ... That's not really the shell. ... That's the exit status of commands. ... process group of the terminal is the process' process group, ... There are a number of perl functions in the POSIX ...
    (comp.unix.shell)
  • shell power vs. modern GUI IDE
    ... I think that the power of shell programming (particularly with the use ... scripting + perl with programming with IDEs like Eclipse or NetBeans. ... Perhaps one problem in vim is the source code browsing: ...
    (de.comp.os.unix.programming)