i am trying to call a system command but can't redirect to a file.
#system ("/home/program", ">", "results/compared.txt");
it thinks the > is a parameter and won't run the program.
another possibility is using backticks
`/home/program > compared.txt`;
but i dont know how to to use variables with backticks.
any help would be appreciated
#system ("/home/program", ">", "results/compared.txt");
it thinks the > is a parameter and won't run the program.
another possibility is using backticks
`/home/program > compared.txt`;
but i dont know how to to use variables with backticks.
any help would be appreciated