I don't see your code where a call to system produces the same output as backticks. Can you provide an example that we can execute ourselves to see what you mean?
The equivalence of `find . -ls`; and open FP, 'find . -ls |' is kind of where the functional overlap ends. Backticks are more confining than using open, and while you can emulate what backticks do using open, you cannot emulate everything that open can do using backticks. And with backticks you get everything back at the same time. In the simple example you presented, one of the best reasons to go with the open version is to allow you to work on the output one line at a time, without storing it all in an array. And the advantage of the backticks in this same example is just the simplicity and brevity.
Dave
In reply to Re: Interacting with the shell ( backticks, system(), open -| )
by davido
in thread Interacting with the shell ( backticks, system(), open -| )
by jktstance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |