in reply to Re^2: IPC::Run3 error
in thread IPC::Run3 error

Ah, so you are using WinXP, it's just that you have a poorly named tool installed. Let me qualify my earlier post.


Three problems.

Solution:

$cmd = 'dir /s/b/a-d | p4 -x - add';

which is short for

$cmd = ['cmd', '/c', 'dir /s/b/a-d | p4 -x - add'];

Well, it's suppose to be. The latter doesn't work for some reason.

Update: Removed extraneous quotes that caused the problem identified in the reply.

Replies are listed 'Best First'.
Re^4: IPC::Run3 error
by Anonymous Monk on Mar 10, 2011 at 08:27 UTC
    I am not the OP.

    While system @$cmd will work, run3 will fail with

    '""""dir' is not recognized as an internal or external command, operable program or batch file.
    even if you hardcode a path to cmd.exe

      Sorry, the double quotes should be there. Typo. Fixed

      It still doesn't work, though. hum...

Re^4: IPC::Run3 error
by freonpsandoz (Beadle) on Mar 08, 2022 at 23:54 UTC

    Yeah, "hum." This is exactly what I was hoping to use run3 for, to run cmd.exe /u /c dir $filespec. It seems that, of the myriad ways that one might attempt to get a glob of Unicode filenames in Perl for Windows, approximately 0% of them work.

      It seems that, of the myriad ways that one might attempt to get a glob of Unicode filenames in Perl for Windows, approximately 0% of them work.

      I gave you code that works fine for me here. As I've said twice before, if you show us specifically what is wrong, we'll likely be able to help you fix it.

        should make glob and readdir work.

        no...really? Imma fireup ma winxp tomorrow