http://qs321.pair.com?node_id=1222499


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