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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: PIPE problem
by suekawar (Novice) on Feb 24, 2003 at 15:07 UTC |