Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: bash vs perl

by naikonta (Curate)
on Jan 11, 2008 at 17:03 UTC ( #661917=note: print w/ replies, xml ) Need Help??


in reply to bash vs perl

My rule of thumbs: Whenever I feel like it, I'll write simple stuff with bash. If it takes 10 lines or so, it's not simple anymore (for me), so Perl takes over. If it takes command line switches, it's not something simple (for me) too, so Perl takes over as well. For simple switches I'll just use -s switch because it's simple and nice. However, for rather complex switches I'll turn to the standard Getopt::Long.


Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!


Comment on Re: bash vs perl
Download Code
Re^2: bash vs perl
by dsheroh (Parson) on Jan 11, 2008 at 17:39 UTC
    Mine is similar: I'll use bash for simple sequences of shell commands, but, if it requires any logic beyond a couple simple if statements or loops, then it's time to switch to perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://661917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-12-18 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls