Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Digest::MD5 addfile() w/ tied filehandle

by BrowserUk (Patriarch)
on Sep 01, 2015 at 18:28 UTC ( [id://1140704]=note: print w/replies, xml ) Need Help??


in reply to Re: Digest::MD5 addfile() w/ tied filehandle
in thread Digest::MD5 addfile() w/ tied filehandle

Two thoughts:

  1. Have you ensured that the filehandle has been binmoded?
  2. Produce a very minimal demonstration of the problem and raise a perlbug.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
  • Comment on Re^2: Digest::MD5 addfile() w/ tied filehandle

Replies are listed 'Best First'.
Re^3: Digest::MD5 addfile() w/ tied filehandle
by jdv (Sexton) on Sep 01, 2015 at 19:07 UTC

    1. The actual filehandle to the compressed file my class reads is opened ':raw', yes. I'm not sure where else it would make sense to do this. If I try to binmode the tied filehandle, it just tries to find a BINMODE method in my class, which I would have to define myself (probably as setting the mode of the compressed filehandle as I've already done).

    2. I'll try to generate a minimal tied class that demonstrates what I observe. If I see the same thing, does this seem like a bug or a feature request? Would they both go to the same place?

      If I see the same thing, does this seem like a bug or a feature request? Would they both go to the same place?

      My best guess based upon what I've read in this thread, is that you've encountered a bug in the PERL_IO implementation; and that it is a bug against Perl itself; thus should be aimed at p5p.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.
      I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140704]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found