|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: I think I just found a good reason to use backticks in a void context.by merlyn (Sage) |
| on Jan 13, 2007 at 20:26 UTC ( [id://594583]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The reduction in time is not because of backticks, but because you're avoiding the shell metachars, meaning that Perl can go directly to the command, rather than forking the shell first.
If you made the test fair, by perhaps adding a semicolon to the end of your backtick command, you'd see that you're saving nothing, and perhaps even spending more time capturing things that you're just going to ignore.
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||