Bat::Interpreter::Delegate::LineLogger::SilentSaveLines
version 0.021
use Bat::Interpreter; use Bat::Interpreter::Delegate::LineLogger::SilentSaveLines; my $silent_line_logger = Bat::Interpreter::Delegate::LineLogger::SilentSaveLines->new; my $interpreter = Bat::Interpreter->new(linelogger => $silent_line_logger); $interpreter->run('my.cmd'); use Data::Dumper; print Dumper($silent_line_logger->lines);
This line logger just discards every line so nothing get logged or printed on STDOUT. But saves the lines for further inspection
Bat::Interpreter::Delegate::LineLogger::SilentSaveLines - LineLogger that just don't log anything but saves the lines for further inspection
Returns an ARRAYREF with all the lines logged
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>
This software is Copyright (c) 2020 by Pablo Rodríguez González.
This is free software, licensed under:
The MIT (X11) License
To install Bat::Interpreter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bat::Interpreter
CPAN shell
perl -MCPAN -e shell install Bat::Interpreter
For more information on module installation, please visit the detailed CPAN module installation guide.