in reply to Re: 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.
OK, I don't understand what you mean by "fair." I found a way to do something that's faster than another way of doing it. I don't get how making something faster that works is somehow perceived as a bad thing. You say
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.As far as I can tell, using backticks is precisely what allows me to avoid using shell metacharacters (I am assuming you mean > and &). I guess I am having trouble understanding your position. Do you have a better alternative?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I think I just found a good reason to use backticks in a void context.
by merlyn (Sage) on Jan 14, 2007 at 02:50 UTC | |
|
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 | |
|
Re^3: I think I just found a good reason to use backticks in a void context.
by Errto (Vicar) on Jan 14, 2007 at 02:01 UTC | |
by OfficeLinebacker (Chaplain) on Jan 14, 2007 at 02:10 UTC |