Skip Menu |

This queue is for tickets about the Test-Inline CPAN distribution.

Report information
The Basics
Id: 2020
Status: resolved
Priority: 0/
Queue: Test-Inline

People
Owner: Nobody in particular
Requestors: corion [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.15
Fixed in: (no value)



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).