I have also been unable to replicate this on my Win XP laptop. This appears to be some kind of weird Windows problem. The "answer" may some some kind of kludge that sets Window's brain straight? The DATA handle is a weird critter that is essentially a file handle to the current .pl program at a particular byte offset. I am wondering if you are able to seek (DATA,0,0) or die "seek failed $!"; prior to reading from DATA? This trick allows a Perl program to read itself. This might help "un-confuse" the file system, but because I can't replicate the problem, I have no way to test this. It is for sure a weird idea that shouldn't matter, but it might. oh, I'm using Perl 5.22 on a Win XP laptop.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|