in reply to PIPE problem

One problem is that qx[] is not what you think it is. It isn't used to build commands... its used to execute them. That is to say,

$result = qx[some command string]; is equivalent to

$result = `some command string`; and they are both (roughly speaking) similar in purpose to

system('some command string');

and you will only need to do one of them not qx// and system.

Looking at your code, I think that you probably want q// (or possibly qq//) instead of qx//. That won't fix all the problems VSarkiss' point will also need fixing.

Also whether system is the right choice will depend on how the commands you are using behave, but I am unfamilair with them, so I leave that to someone else.


Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.

Replies are listed 'Best First'.
Re: Re: PIPE problem
by suekawar (Novice) on Feb 24, 2003 at 15:07 UTC
    thanks