Dan Sugalski wrote:
> What's probably going on is that your file isn't a Stream format file, but
> VFC or variable or something of the sort, so there really aren't an
> newlines in there--they're inserted automagically by RMS and/or the C
> runtime library. Binmode reopens the file so perl sees the raw bytes on
> disk, pretty much completely bypassing RMS. Handy if you want to mess with
> the length bytes or something, but generally it really sucks for other
> things. :)
>
> Try hacking the module so it doesn't binmode and see if that works better.
FYI:
This reminds me that the wc program that I sent to Tom C's ppt project
will do a binmode on any filehandle, hence it screws up the line count
on VFC and other files. I've been meaning to patch that.
Peter Prymmer