For the old-timers, I'd like to note that this doesn't work for non-byte-stream files. seek/tell positions aren't always byte offsets, though these days it is getting hard to find people who remember working on such systems. :)
(Also, note that -s doesn't always tell you how many bytes you'll get when you read the file -- the most common case being "\r\n"-to-"\n" translation w/o binmode on Win32.)
- tye
In reply to Re: Eureka! size of DATA (modern)
by tye
in thread Eureka! size of DATA
by kwaping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |