|
Hi,
I am using the following code:
$diffCommand = "tool actionpaint " . $baseline1 . "@/projects" . " " . $baseline2 . "@/projects";
if (not(open DIFF_HDL, $diffCommand."|"))
Basically i create a command which is used in command line window, this command is created depending on previous information, hence it is joined together and stored in $diffcommand.
But when i try to use a pipe with the $diffCommand variable in the if statement, whithin the open(,) command it doesn't work, the command line thinks its part of the string and not a pipe. I also tried this:
if (not(open DIFF_HDL, $diffCommand|))
but it gave me a compilation error, any help?
Thanks.
|
|
|
What compiler are you using?
|
|
|
|
|
I solved the problem, | was on the wrong side, what a stupid mistake!
|
|
|
|
|
|
|
// |