This is just a guess so don't yell if I'm wrong.

I believe the problem is that when installing perl you register .pl filehandles and what not, but you also put the perl path in your envirmental path variable. Now I would assume that you have that path because I'll assume you ommitted perl when you ran it without the " > test.out" and you get output when you run it with the perl ommitted.

At first i thought it was a problem with your shebang line; however, that isn't what is causing the problem because I still got that error when running it on a windows machine. Next I thought it might be from the -w. Crash and burn also. Then I struck gold. The problem is in your code itself. For some reason or another the command.exe shell is catching on you system call. It is not a problem with the shell. It is a problem with the code itself.

I believe it is because when you call a system command in perl, you send the command directly to the system, bypassing perl (except perl returns 1 or 0 for success). This somewhat confuses windows (for lack of a better term). This may not be the explanation you were looking for, but it's all i got.


In reply to Re: Strange "There is not enough space on the disk" error (Win32) by MrStretch
in thread Strange "There is not enough space on the disk" error (Win32) by bgreenlee

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.