Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( #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 (Archbishop) 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 (Friar) on Sep 17, 2018 at 15:22 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-05-25 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (146 votes). Check out past polls.

    Notices?