Another process is accessing the DATA pseudo-handle?

There's an answer on SO pointing out that it doesn't have to be a different process. I don't know if there's anything in that answer that would prove helpful.

I can't reproduce your problem, btw.
I generated a test file thusly:
use warnings; open WR, '>', 'buk.pl' or die $!; print WR "#! perl -slw\n", "use strict;\n\n", "my \@data;\n", "my \$i = 0;\n\n", "#\$data[ \$i++ ] = [ split ' ' ]\n\n", "++\$i while <DATA>;\n\n", "print \$i;\n\n", "__DATA__\n\n"; for(1 .. 500000) { print WR "-69.282032302755084 40.000000000000014 0 -1\n", "-69.123493781255831 39.908467741935496 -1.4443382565142906e-006 + -1\n", "-68.748013135538145 40.911009397420145 0 -1\n", "-68.964955259756593 39.816935483870985 -2.990721348858345e-006 -1\ +n", "-68.370049396495517 40.298149116372635 -6.3944096502804299e-006 + -1\n", "-68.202015544462682 41.814890597403163 0 -1\n"; }
And then ran the generated perl script (on 32-bit perl-5.16.0 and 64-bit perl-5.22.0), Windows 7:
C:\_32\pscrpt>perl buk.pl 3000001
Cheers,
Rob

In reply to Re: The process cannot access the file because it is being used by another process? by syphilis
in thread The process cannot access the file because it is being used by another process?[Problem disappeared!] by BrowserUk

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.