Subject: | Test::Inline fails for modules that use BINMODE |
Any module using a tied filehandle (for example CGI.pm) will fail, because the "Catch" package in the created inline test file does not support the BINMODE method. Simply adding
sub BINMODE {};
to line 23 in every generated file solves the problem.
Here's an inline that exercises the behaviour :
use strict;
=for example begin
BEGIN{binmode STDOUT};
=for example end
This is perl, v5.6.1 built for MSWin32-x86-multi-thread (a place where binmode() is common).