TAPx::Parser::Source::Perl - Stream Perl output
Version 0.50_07
Takes a filename and hopefully returns a stream from it. The filename should be the name of a Perl program.
Note that this is a subclass of TAPx::Parser::Source. See that module for more methods.
use TAPx::Parser::Source::Perl; my $perl = TAPx::Parser::Source::Perl->new; my $stream = $perl->source($filename)->get_stream;
new
my $perl = TAPx::Parser::Source::Perl->new;
Returns a new TAPx::Parser::Source::Perl object.
TAPx::Parser::Source::Perl
source
my $perl = $source->source; $perl->source($filename);
Getter/setter for the source filename. Will croak if the $filename does not appear to be a file.
croak
$filename
switches
my $switches = $perl->switches; my @switches = $perl->switches; $perl->switches(\@switches);
Getter/setter for the additional switches to pass to the perl executable. One common switch would be to set an include directory:
$perl->switches('-Ilib');
To install TAPx::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAPx::Parser
CPAN shell
perl -MCPAN -e shell install TAPx::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.