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.
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.
Anthony Brummett <firstname.lastname@example.org>
Copyright 2016, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.