Subject: | Bug w/ Capture::Tiny in ...::Ajax::PerlSyntax |
I have this message:
[error] Caught exception in
Perldoc::Server::Controller::Ajax::PerlSyntax->index "Can't locate
object method "FILENO" via package "FCGI::Stream" at
/usr/local/lib/perl5/site_perl/5.10.0/Capture/Tiny.pm line 78."
Yeah, I know, it's a bug of FCGI::Stream, they have not FILENO. But I
think we can fix it localy.
When I commented Capture::Tiny, it works, but produce messages at console:
## Please see file SCALAR
I read documentation of Perl::Tidy and found solution:
7c7
< use Capture::Tiny qw/capture/;
---
Show quoted text
> #use Capture::Tiny qw/capture/;
10a11
Show quoted text> use File::Spec;
38c39
< capture {
---
Show quoted text> # capture {
43a45
Show quoted text> stderr => File::Spec->devnull(),
45c47
< };
---
Show quoted text> # };
If u need an output of Perl::Tidy, u can open $filehandle to \$buffer
and put it into stderr => $filehandle.