in reply to autodie and IPC::System::Simple on Windows

Given that both modules are by the same author, you'd probably get better answers by raising the issue(s) with him directly.

From my perspective, 600 lines of code for "producing a well-formatted error string", seems excessive and unnecessary.

Adding another 1000+ lines of code in order to avoid typing  ... or die $!; just seems gratuitous.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: autodie and IPC::System::Simple on Windows
by Anonymous Monk on Jun 02, 2012 at 08:15 UTC

    Better answers?

    It says "dir" failed to start: "The system cannot find the file specified

    It is lookin for a file dir and it can't find it, there is no dir.exe on win32

      It is wrongly assuming that dir is an executable when it is actually a cmd.exe built-in.

      Use the built-in system and that does not happen.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        Bingo! Now it all makes sense to me. Apparently Perl's internal "system" takes this into account. Indeed, with both autodie and IPC::System::Simple loaded, this works just fine for me:

        systemx('cmd', '/c', 'dir', 'test.pl');

        Thanks for steering me in the right direction.

Re^2: autodie and IPC::System::Simple on Windows
by JohnRS (Scribe) on Jun 02, 2012 at 18:01 UTC

    Yes and no. Comparing apples to apples, from purely a typing perspective: Using autodie is 1 line of typing to save numerous "... or die" lines throughout my code. And I don't have to worry about missing one. :)