Hrmn, strange.

I could have sworn I attempted to do:

sockread &blah
bwrite ... &blah

Tried it again just now and it worked.


I must have, in the wee hours of this morning (4am-ish), thought something wasn't working when I tried it. But I think I've discovered the reason why I didn't think it worked:

The page I was using the plain sockread &blah on, had one major massive line on it, the rest of the webpage only had $cr terminated lines. So doing a sockread &blah would show only a couple massive lines of text when looking at the created file. But using sockread, in my alternative code, in the way I did above, was basically converting the $cr's to $crlf's.

Well hrmn. :P Guess I can't ask for a switch to auto convert $crs to $crlfs eh.

Also, why is it that when you do: sockread 4000 &blah, $bvar(&blah,0) doesn't *always* return 4000 (it returns many other amounts in my tests and only a few of those are 4000) ? I thought that was supposed to force a 4000 byte sockread? ... I'm going to assume it has something to do with the speed at which you download it *shrug*