Re: Shell scripting VS perl
- From: Dances With Crows <danceswithcrows@xxxxxxx>
- Date: 30 Apr 2008 13:33:40 GMT
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
.
- References:
- Shell scripting VS perl
- From: kenneho
- Shell scripting VS perl
- Prev by Date: Re: Another PAN question
- Next by Date: Wholesale Versace Sandals, Crocs Women's Sandals, Coach sandals
- Previous by thread: Shell scripting VS perl
- Next by thread: Re: Shell scripting VS perl
- Index(es):
Relevant Pages
|