in reply to Re^4: Again on SOAP::Lite, MIME::Entity and SOAP::Packager
in thread Again on SOAP::Lite, MIME::Entity and SOAP::Packager
Oh, sorry - I misled you in my untested reply about monkey patching. The monkeypatch should simply use $old_stringify_body. You now have the (IMO better) approach of patching the module directly, but for completeness, the following should allow you to replace just that subroutine:
use MIME::Entity; my $old_stringify_body = \&MIME::Entity::stringify_body; *MIME::Entity::stringify_body = sub { my( $self ) = @_; my $body = $old_stringify_body(); $body =~ s!\n!\r\n!g; return $body };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Again on SOAP::Lite, MIME::Entity and SOAP::Packager
by ray.rick.mini (Sexton) on Dec 29, 2016 at 11:27 UTC | |
by Corion (Patriarch) on Dec 29, 2016 at 12:04 UTC | |
by ray.rick.mini (Sexton) on Dec 29, 2016 at 13:28 UTC |