Re: [PATCHv5 06/17] gitweb/lib - Simple select(FH) based output capture From: Thomas Adam <hidden> Date: 2016-06-15 22:49:43 Hi -- On 6 October 2010 23:01, Jakub Narebski [off-list ref] wrote:+sub capture { + my ($self, $code) = @_; + + $self->start(); + $code->(); unless( defined $code and $code eq 'CODE' ) { # Error? .... } + return $self->stop(); +} + +# Wrap caching data; capture only STDOUT +sub capture_block (&) { This is prototyped deliberately? -- Thomas Adam
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help