in reply to Re^4: Unexpected result using tell/seek within the __DATA__ file
in thread Unexpected result using tell/seek within the __DATA__ file
So what are the 12 bytes vs the 13 bytes, using the hex editor?
If you're using CRLF as you say, you would get 14 and 16.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 "a" "b" CR LF "_" "_" "D" "A" "T" "A" "_" "_" CR LF "a" "b" CR LF CR LF "_" "_" "D" "A" "T" "A" "_" "_" CR LF 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
None of PerlIO, clib and the OS know anything of __DATA__, so they don't reporting the file positions different after the first __DATA__ is encountered.
I didn't take anything out of context. You said you get a shift of 2 before DATA and a shift of 1 (13-12) after DATA. Yet you say the difference in the file is two characters (CR LF) in both cases. Those statements are contradictory.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Unexpected result using tell/seek within the __DATA__ file
by Gulliver (Monk) on Mar 12, 2011 at 02:39 UTC | |
by ikegami (Patriarch) on Mar 12, 2011 at 06:33 UTC |