Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: using sed buffers

by JavaFan (Canon)
on May 02, 2012 at 22:46 UTC ( #968575=note: print w/replies, xml ) Need Help??


in reply to Re^3: using sed buffers
in thread using sed buffers

What's discouraged (much of the time)
Only by some people
is often more costly than using the Perl equivalent/variant.
So what? In many cases, it doesn't matter.

Note also he's using sed to strip off some of the output of ps. I'm sure someone made a module somewhere that mimics all the flavours of ps, but I rather spend a few microseconds forking and execing a 'ps', then I go hunting down said module, download and install it, and learn how it works.

There can be all kinds of reasons one does something in Perl instead of shelling out. But being considered "discouraged" by some doesn't strike me as an important reason.

But that may be just me.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968575]
help
Chatterbox?
and nobody stirs...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-02-27 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (386 votes). Check out past polls.