Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to bypass File::Slurp when it is required by another module? (monkeypatch)

by beech (Parson)
on Sep 17, 2018 at 06:21 UTC ( [id://1222499]=note: print w/replies, xml ) Need Help??


in reply to How to bypass File::Slurp when it is required by another module?

Hi,

Where is the call to read_file exactly? That is what you should fix/bugreport to use binmode

You can override in your program by "monkeypatch" (an emergency measure)

sub File::Slurp::read_file { ... } or local *File::Slurp::read_file = sub { ... };
  • Comment on Re: How to bypass File::Slurp when it is required by another module? (monkeypatch)
  • Download Code

Replies are listed 'Best First'.
Re^2: How to bypass File::Slurp when it is required by another module? (monkeypatch)
by marto (Cardinal) on Sep 17, 2018 at 06:33 UTC

    Last time I looked the module was borked rt://83126.

Re^2: How to bypass File::Slurp when it is required by another module? (monkeypatch)
by vitoco (Hermit) on Sep 17, 2018 at 15:22 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-19 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found