Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: The process cannot access the file because it is being used by another process?

by syphilis (Archbishop)
on Apr 28, 2016 at 01:19 UTC ( [id://1161716]=note: print w/replies, xml ) Need Help??


in reply to The process cannot access the file because it is being used by another process?[Problem disappeared!]

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161716]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-16 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found