So I'm guessing that there is something that I'm overlooking.

It is a basic trap , there is no dir.exe, which autodie is looking for

$ dir NUL Directory of \\. File Not Found $ perl -Mautodie=system -e " system q[dir NUL] " "dir NUL" unexpectedly returned exit value 255 at (eval 10) line 13. at -e line 1 $ perl -Mautodie=system -e " system q[C:\\WINDOWS\\system32\\cmd.EXE / +x /c dir NUL] " Directory of \\. File Not Found "C:\WINDOWS\system32\cmd.EXE /x /c dir NUL" unexpectedly returned exit + value 1 at (eval 10) line 13. at -e line 1

Basically you need to read system followed by Config#sh followed by  help dir at your console, followed by autodie and for good measure perlport#system and How Command Line Parameters Are Parsed and Behind the GUI lives the Shell

See also Re: system() implementation on Windows (again), Re^3: system() implementation on Windows (again)

Yeah, system really stinks, and the sad part is, it stinks everywhere


In reply to Re: autodie and IPC::System::Simple on Windows by Anonymous Monk
in thread autodie and IPC::System::Simple on Windows by JohnRS

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.