Hi I have a function that returns a string with multiple lines in it. This is a configuration for another program that I can run using a backtick shell. It gets the configuration through Standard input. whats the best way to get the input data into the other program?
I could probably do something likemy $data = function(); $ result = `echo $data | program`;
but I would have thought that there'd be a better way than using the echo command. I could treat it as a filehandle but then I'd be limited to only inputing data to the command or recieving it's output and I want to do both.
In reply to piping a function into a backtick shell by drawde83
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |