/usr/share/perl5/Text/Trac/Macro.pm is in libtext-trac-perl 0.15-1.
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 | package Text::Trac::Macro;
use strict;
use base qw(Text::Trac::InlineNode Class::Accessor::Fast);
use UNIVERSAL::require;
use Text::ParseWords qw(quotewords);
__PACKAGE__->mk_accessors( 'pattern' );
sub new {
my $class = shift;
my $self = {};
bless $self, $class;
return $self;
}
sub parse {
my ( $self, $name, $args, $match ) = @_;
my $c = $self->{context};
my @args = quotewords( ',\s*', 0, $args ) if $args;
map { s/^\s+|\s+$//g } @args;
foreach my $class ("Text::Trac::Macro::$name", $name) {
if ( $class->require ) {
$match = $class->process( $c, @args ) || '';
last;
}
}
return $match;
}
1;
|