The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package
  Teng::Plugin::ArgsTest;

use strict;
use warnings;

our @EXPORT = qw/args_class args_opt/;
my %args;

sub init {
    my ($pkg, $class, $opt) = @_;
    $args{class} = $class;
    $args{opt} = $opt;
}

sub args_class {
    my ($self) = @_;
    return $args{class};
}

sub args_opt {
    my ($self) = @_;
    return $args{opt};
}

1;