File: Frame.pm

package info (click to toggle)
libdevel-stacktrace-withlexicals-perl 2.01-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 224 kB
  • sloc: perl: 1,531; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package Devel::StackTrace::WithLexicals::Frame;
use strict;
use warnings;
use Devel::StackTrace;
use base 'Devel::StackTrace::Frame';

sub new {
    my $class = shift;

    my $self = $class->SUPER::new(@_);

    $self->{lexicals} = $_[6];

    return $self;
}

sub lexicals { shift->{lexicals} }

sub lexical {
    my $self = shift;
    return $self->lexicals->{$_[0]};
}

1;