[Israel.pm] qx{} silently fails
Yuval Kogman
nothingmuch at woobling.org
Sun Jun 1 22:37:14 EEST 2008
I would use IPC::Cmd, it's much more robust than qx, and tries to be
portable.
This will also let you avoid shell interpolation which is a big
program with qx/system/exec etc when used in 1 arg form.
On Sun, Jun 01, 2008 at 22:29:43 +0300, Shmuel Fomberg wrote:
> Hi All.
>
> I was trying to compile some C code from Perl, using MS-VS-2003.
> So I did something like:
> $x = `c:\\progr... long path...\\bin\\cl.exe params..`;
> it actually complained, (didn't like the spaces) so I did:
> $x = `"c:\\progr... long path...\\bin\\cl.exe" params..`;
> and it did not complained. actually, it did nothing. silently failed.
>
> Help?
> Shmuel.
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
--
Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org 0xEBD27418
More information about the Perl
mailing list