Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: using binmode() to override default encoding specified in "use open"

by hippo (Bishop)
on Jul 22, 2020 at 12:25 UTC ( [id://11119639]=note: print w/replies, xml ) Need Help??


in reply to Re^2: using binmode() to override default encoding specified in "use open"
in thread using binmode() to override default encoding specified in "use open"

I tend to agree with you that having multiple ":encoding" layers doesn't make a lot of sense. There may be a scenario where it does but I can't think of one right now.

The docs for perliol include this gem:

binmode() operates similarly to open(): by default the specified layers are pushed on top of the existing stack.

So that agrees with what we see, and might well make sense for non-competing layers. It does rather appear that to override a specified default encoding with binmode you will need to do the reset first.

  • Comment on Re^3: using binmode() to override default encoding specified in "use open"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found