line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::used; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2015-03-05 19:53:14 |
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
5
|
|
|
|
|
|
|
# $Id$ |
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
61450
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
10
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
11
|
1
|
|
|
1
|
|
219
|
use version; |
|
1
|
|
|
|
|
1274
|
|
|
1
|
|
|
|
|
5
|
|
12
|
1
|
|
|
1
|
|
59
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
47
|
|
13
|
1
|
|
|
1
|
|
344
|
use Data::Dumper qw/Dumper/; |
|
1
|
|
|
|
|
4785
|
|
|
1
|
|
|
|
|
48
|
|
14
|
1
|
|
|
1
|
|
260
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
2427
|
|
|
1
|
|
|
|
|
6
|
|
15
|
1
|
|
|
1
|
|
256
|
use base qw/Exporter/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
140
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->new('0.0.8'); |
18
|
|
|
|
|
|
|
our @EXPORT_OK = qw//; |
19
|
|
|
|
|
|
|
our %EXPORT_TAGS = (); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
App::used - Find modules used or required in perl files or directories of perl files |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This documentation refers to App::used version 0.0.8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
used [option] |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
OPTIONS: |
39
|
|
|
|
|
|
|
-n --name Order by module name (Default order) |
40
|
|
|
|
|
|
|
-I --lib[=]dir Add the directory to the list of local library paths. This |
41
|
|
|
|
|
|
|
stops reporting of modules that are part of the project |
42
|
|
|
|
|
|
|
being marked as not added to the Build.PL file. The default |
43
|
|
|
|
|
|
|
list includes lib/ and t/lib/ |
44
|
|
|
|
|
|
|
-u --used Order by the number of times a module is used/required |
45
|
|
|
|
|
|
|
-U --update Update the requires section of the Build.PL file |
46
|
|
|
|
|
|
|
-d --decending Reverse the sort order |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
-p --perl-version |
49
|
|
|
|
|
|
|
Show files that require the highest version of Perl to be used |
50
|
|
|
|
|
|
|
-v --verbose Show more detailed option |
51
|
|
|
|
|
|
|
Specified once shows module verion numbers verses required |
52
|
|
|
|
|
|
|
versions. |
53
|
|
|
|
|
|
|
Specified twice also shows modules that are local to the |
54
|
|
|
|
|
|
|
project and modules that are part of the default perl |
55
|
|
|
|
|
|
|
version. |
56
|
|
|
|
|
|
|
--version Prints the version information |
57
|
|
|
|
|
|
|
--help Prints this help information |
58
|
|
|
|
|
|
|
--man Prints the full documentation for used |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
There are no known bugs in this module. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Patches are welcome. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 AUTHOR |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Copyright (c) 2009-2015 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
87
|
|
|
|
|
|
|
All rights reserved. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
91
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
92
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
93
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |