# perldoc > Devel::StackTrace::Frame

---
type: CommandReference
command: Devel::StackTrace::Frame
mode: perldoc
section: ""
source: perldoc
---

## Quick Reference

- `$frame->package` — returns the package name
- `$frame->filename` — returns the filename
- `$frame->line` — returns the line number
- `$frame->subroutine` — returns the subroutine name
- `$frame->args` — returns the arguments passed to the frame
- `$frame->as_string` — returns a string description of the frame

## Name

A single frame in a stack trace

## Synopsis

See [Devel::StackTrace](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3AStackTrace/markdown) for details.

## Options

- `$frame->package` — returns the package name
- `$frame->filename` — returns the filename
- `$frame->line` — returns the line number
- `$frame->subroutine` — returns the subroutine name
- `$frame->hasargs` — returns whether the frame has arguments
- `$frame->wantarray` — returns the wantarray context
- `$frame->evaltext` — returns the eval text; returns undef if the frame was not part of an eval
- `$frame->is_require` — returns undef if the frame was not part of a require
- `$frame->args` — returns the arguments passed to the frame; references are returned as references, not copies
- `$frame->hints` — returns hints
- `$frame->bitmask` — returns the bitmask
- `$frame->as_string` — returns a string containing a description of the frame

## Examples

No examples provided.

## See Also

- [Devel::StackTrace](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3AStackTrace/markdown) — the parent module
- Perl's `caller` documentation for more information on these methods