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

Re: Unix shell versus Perl (saw)

by tye (Sage)
on Feb 18, 2008 at 17:05 UTC ( #668611=note: print w/replies, xml ) Need Help??

in reply to Unix shell versus Perl

If process startup time is significant. Note that shell has a lower startup cost than Perl.

I'd not include that item. It sounds very much like premature micro-optimization. Recently someone was ranting about 'sed' being better in some cases than Perl because it starts up faster. My testing (on two very different systems) showed Perl starting up about twice as fast as 'sed' and both starting fast enough that the difference was unlikely to be noticed. I think you'd be hard pressed to properly document how little your shell script can do and still keep this "advantage" over a Perl script.

- tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668611]
[Discipulus]: since 2002 I just usewd and good morning
Discipulus .oO(maybe a PM discussion?)
[Corion]: Discipulus: Yeah, I left a note to the replies mentioning ;)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-09-26 07:55 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.