slloyd has asked for the wisdom of the Perl Monks concerning the following question:
However it fails to pass the quoted argument if $cmd looks like this:my $cmd="nmake NODEBUG=1"; open(RS,"$cmd 2>&1 |"); close(RS);
Can someone enlighten me on what I can do to resolve this? Thanks.$cmd=qq|nmake NODEBUG=1 "ADDED_CFLAGS=/DCOST_EN_US /DPAYMENT_CREDIT_CA +RD"|;
-------------------------------
Need a good Perl friendly Host Provider?
http://www.dreamhost.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to open a pipe from CMD if CMD has quotes?
by tuxz0r (Pilgrim) on Dec 05, 2007 at 01:02 UTC | |
by slloyd (Hermit) on Dec 05, 2007 at 01:07 UTC | |
by tuxz0r (Pilgrim) on Dec 05, 2007 at 01:12 UTC | |
by slloyd (Hermit) on Dec 05, 2007 at 05:24 UTC | |
|
Re: How to open a pipe from CMD if CMD has quotes?
by ikegami (Patriarch) on Dec 05, 2007 at 04:38 UTC |