This file is indexed.

/usr/share/perl5/XMLTV/Usage.pm is in libxmltv-perl 0.5.70-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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# A simple package to provide usage messages.  Example
#
# use XMLTV::Usage <<END
# usage: $0 [--help] [--whatever] FILES...
# END
# ;
#
# Then the usage() subroutine will print the message you gave to
# stderr and exit with failure.  An optional Boolean argument to
# usage(), if true, will make it a 'help message', which is the same
# except it prints to stdout and exits successfully.
#
# Alternatively, if your usage message is not known at compile time,
# you can pass it as a string to usage().  In this case you need two
# arguments: the 'is help' flag mentioned above, and the message.
#
# It's up to you to call the usage() subroutine, I've thought about
# processing --help with a check_argv() routine in this module, but
# some programs have different help messages depending on what other
# options were given.
#
# $Id: Usage.pm,v 1.4 2004/01/03 14:52:53 epaepa Exp $
#

package XMLTV::Usage;
use base 'Exporter'; our @EXPORT = qw(usage);
my $msg;

sub import( @ ) {
    if (@_ == 1) {
	# No message specifed at import.
    }
    elsif (@_ == 2) {
	$msg = pop;
    }
    else {
	die "usage: use XMLTV::Usage [usage-message]";
    }
    goto &Exporter::import;
}

sub usage( ;$$ ) {
    my $is_help = shift;
    my $got_msg = shift;
    my $m = (defined $got_msg) ? $got_msg : $msg;
    die "need to 'import' this module to set message"
      if not defined $m;

    if ($is_help) {
	print $m;
	exit(0);
    }
    else {
	print STDERR $m;
	exit(1);
    }
}

1;