Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: I think I just found a good reason to use backticks in a void context.

by Aristotle (Chancellor)
on Jan 14, 2007 at 02:28 UTC ( #594593=note: print w/ replies, xml ) Need Help??


in reply to Re^2: I think I just found a good reason to use backticks in a void context.
in thread I thought I found a good reason to use backticks in a void context, but I was wrong.

Using backticks is not the only way of avoiding the shell. Pass a list to system (or to a three-arg pipe-open for convenient output suppression) and you get the same effect.

So no, this isnít a reason to use backticks in void context; it is merely a reason to avoid invoking the shell when you donít need it. Even if backticks were required for that, saving a couple of microseconds here and there wouldnít constitute a good reason to do it, as per the topic.

Makeshifts last the longest.


Comment on Re^3: I think I just found a good reason to use backticks in a void context.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-09-19 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls