/usr/share/perl5/Kavorka/Sub/Around.pm is in libkavorka-perl 0.036-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | use 5.014;
use strict;
use warnings;
package Kavorka::Sub::Around;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '0.036';
use Moo;
with 'Kavorka::MethodModifier';
sub default_invocant
{
my $self = shift;
return (
'Kavorka::Parameter'->new(
name => '$next',
traits => { invocant => 1 },
),
'Kavorka::Parameter'->new(
name => '$self',
traits => { invocant => 1 },
),
);
}
sub method_modifier { 'around' }
around inject_prelude => sub
{
my $next = shift;
my $self = shift;
return join '' => (
'*{^NEXT} = \\$_[0];',
$self->$next(@_),
);
};
1;
|