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
|
|
162608
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
10
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
11
|
1
|
|
|
1
|
|
423
|
use version; |
|
1
|
|
|
|
|
1815
|
|
|
1
|
|
|
|
|
5
|
|
12
|
1
|
|
|
1
|
|
82
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
54
|
|
13
|
1
|
|
|
1
|
|
617
|
use Data::Dumper qw/Dumper/; |
|
1
|
|
|
|
|
5890
|
|
|
1
|
|
|
|
|
60
|
|
14
|
1
|
|
|
1
|
|
479
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
3776
|
|
|
1
|
|
|
|
|
8
|
|
15
|
1
|
|
|
1
|
|
329
|
use base qw/Exporter/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
174
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->new('0.1.0'); |
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.1.0 |
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
|
|
|
|
|
|
|
-m --min-version |
49
|
|
|
|
|
|
|
Show all files minimum Perl version requirement. |
50
|
|
|
|
|
|
|
-p --perl-version |
51
|
|
|
|
|
|
|
Show files that require the highest version of Perl to be used |
52
|
|
|
|
|
|
|
-u --uses Show dependent modules in order of how often they are used |
53
|
|
|
|
|
|
|
-b --build[=]name |
54
|
|
|
|
|
|
|
Specify the builder script file (Default Build.PL) |
55
|
|
|
|
|
|
|
-x --exclude[=]regexp |
56
|
|
|
|
|
|
|
Ignore directories and files matching this regexp |
57
|
|
|
|
|
|
|
-q --quiet Quiet down output |
58
|
|
|
|
|
|
|
-v --verbose Show more detailed option |
59
|
|
|
|
|
|
|
Specified once shows module verion numbers verses required |
60
|
|
|
|
|
|
|
versions. |
61
|
|
|
|
|
|
|
Specified twice also shows modules that are local to the |
62
|
|
|
|
|
|
|
project and modules that are part of the default perl |
63
|
|
|
|
|
|
|
version. |
64
|
|
|
|
|
|
|
--version Prints the version information |
65
|
|
|
|
|
|
|
--help Prints this help information |
66
|
|
|
|
|
|
|
--man Prints the full documentation for used |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 DESCRIPTION |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The C<used> tells you what modules have been C<used> or C<required> or |
71
|
|
|
|
|
|
|
C<extend>ed (Moose) or L<Catalyst> plugins used by files in the current |
72
|
|
|
|
|
|
|
directory and subdirectories. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
There are no known bugs in this module. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Patches are welcome. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Copyright (c) 2009-2015 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
99
|
|
|
|
|
|
|
All rights reserved. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
102
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
103
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
104
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
105
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |