Devel::Chitin::SubroutineLocation - A class to represent the location of a subroutine
my $sub_name = 'The::Package::subname'; my $loc = $debugger->subroutine_location($subname); printf("subroutine %s is in package %s in file %s from line %d to %d\n", $loc->subroutine, $loc->package, $loc->filename, $loc->line, $loc->end);
This class is used to represent a subroutine with location in the debugged program.
Devel::Chitin::SubroutineLocation->new(%params)
Construct a new instance. The following parameters are accepted; all are required.
The package the subroutine was declared in.
The file in which the subroutine appears.
The name of the subroutine.
The line the subroutine starts.
The line the subroutine ends.
A callable coderef for the subroutine.
Each construction parameter also has a read-only method to retrieve the value.
Devel::Chitin::Location, Devel::Chitin
Anthony Brummett <brummett@cpan.org>
Copyright 2017, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Devel::Chitin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Chitin
CPAN shell
perl -MCPAN -e shell install Devel::Chitin
For more information on module installation, please visit the detailed CPAN module installation guide.