« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Autouse.pm
↑ Summary
lib/Perl/PrereqScanner/NotQuiteLite/Parser/Prefork.pm »
| 1 | package Perl::PrereqScanner::NotQuiteLite::Parser::Later; | ||||||||||
| 2 | |||||||||||
| 3 | 88 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 88 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 88 | ▶ | use Perl::PrereqScanner::NotQuiteLite::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub register { return { | ||||||||||
| 8 | 87 | ▶ | use => { | ||||||||
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 'later' => 'parse_later_args', | ||||||||||
| 10 | }, | ||||||||||
| 11 | }} | ||||||||||
| 12 | |||||||||||
| 13 | sub parse_later_args { | ||||||||||
| 14 | 2 | ▶ | my ($class, $c, $used_module, $raw_tokens) = @_; | ||||||||
|
Subroutine
parse_later_args: called CC=4 SCAR=15.2
Pod
undocumented
| |||||||||||
| 15 | |||||||||||
| 16 | 2 | my $tokens = convert_string_tokens($raw_tokens); | |||||||||
| 17 | 2 | ▶ | if (is_version($tokens->[0])) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | $c->add($used_module => shift @$tokens); | |||||||||
| 19 | } | ||||||||||
| 20 | 2 | my $module = $tokens->[0]; | |||||||||
| 21 | 2 | ▶ | if (ref $module) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | $module = $module->[0]; | |||||||||
| 23 | } | ||||||||||
| 24 | 2 | ▶ | if (is_module_name($module)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 2 | $c->add_recommendation($module => 0); | |||||||||
| 26 | } | ||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 88 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||