in reply to Re^3: Unexpected result using tell/seek within the __DATA__ file
in thread Unexpected result using tell/seek within the __DATA__ file
You took that out of context. There is no contradiction. You were the one who implied the program file had mixed newline types. I only got out the hex editor to rule out the possibility. All the newlines in the program file have 2 bytes as I stated already.
The offsets I'm referring to in the original post are the offsets shown in the program output. 468 480 493 505 are the offset positions from the array that was created from "tell DATA". By taking the differences between sucessive numbers I could see that adding a newline in the DATA section changed the difference from 12 to 13. 493-480=13; 480-468=12
Adding a new line in the Main Code caused all offsets displayed in the program output to be shifted by 2.
Update: I just got the hex editor out again, all the dust has been brushed off now. The positions of the next character after each of the __DATA__ lines is as follows:
from Hex edit From program output in OP 0x1D6 => 470 # 470 (the same) 0x1E4 => 484 # 482 different, just like I said. 0x1F4 => 500 # 495 0x202 => 514 # 507
It confirms what I've been saying all along.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Unexpected result using tell/seek within the __DATA__ file
by ikegami (Patriarch) on Mar 12, 2011 at 00:36 UTC | |
by Gulliver (Monk) on Mar 12, 2011 at 02:39 UTC | |
by ikegami (Patriarch) on Mar 12, 2011 at 06:33 UTC |