At 02:55 PM 2/15/00 -0800, [EMAIL PROTECTED] wrote:
>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.

I know that binmode's been on the hit list for a while, with a real 
temptation to make it a noop as a core operator. I've been tempted to make 
it a noop on non-stream filehandles and leave it as-is for stream, 
unformatted, and block files.


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to