The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TAPx::Parser::Source::Perl - Stream Perl output

VERSION

Version 0.50_07

DESCRIPTION

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.

SYNOPSIS

 use TAPx::Parser::Source::Perl;
 my $perl   = TAPx::Parser::Source::Perl->new;
 my $stream = $perl->source($filename)->get_stream;

METHODS

Class methods

new

 my $perl = TAPx::Parser::Source::Perl->new;

Returns a new TAPx::Parser::Source::Perl object.

Instance methods

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.

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');