Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

detect "need" and "require" in addition to "use"

  • Loading branch information...
commit b1900cdc7ca3f3f6d449d76de6f9372d31e671f5 1 parent b20d985
@moritz moritz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/ufo
View
2  bin/ufo
@@ -139,7 +139,7 @@ sub get_sources() {
my $module = path-to-module-name($module-file);
%usages_of{$module} = [];
for $fh.lines() {
- if /^\s* 'use' \s+ (\w+ ['::' \w+]*)/ && $0 -> $used {
+ if /^\s* ['use'|'need'|'require'] \s+ (\w+ ['::' \w+]*)/ && $0 -> $used {
next if $used eq 'v6';
next if $used eq 'MONKEY_TYPING';
Please sign in to comment.
Something went wrong with that request. Please try again.