++ed by:

2 non-PAUSE users.

Anthony Brummett

NAME

Devel::Chitin::SubroutineLocation - A class to represent the location of a subroutine

SYNOPSIS

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

DESCRIPTION

This class is used to represent a subroutine with location in the debugged program.

METHODS

  Devel::Chitin::SubroutineLocation->new(%params)

Construct a new instance. The following parameters are accepted; all are required.

package

The package the subroutine was declared in.

filename

The file in which the subroutine appears.

subroutine

The name of the subroutine.

line

The line the subroutine starts.

end

The line the subroutine ends.

code

A callable coderef for the subroutine.

Each construction parameter also has a read-only method to retrieve the value.

SEE ALSO

Devel::Chitin::Location, Devel::Chitin

AUTHOR

Anthony Brummett <brummett@cpan.org>

COPYRIGHT

Copyright 2016, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.