Skip to content

Commit

Permalink
Recommend "use" instead of "need"
Browse files Browse the repository at this point in the history
Fixes RT#132214: https://rt.perl.org/Public/Bug/Display.html?id=132214

"need v6" is nonsense and doesn't invoke pragma.
  • Loading branch information
titsuki committed Jan 14, 2018
1 parent 0cdd82a commit 0a73f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Exception.pm
Expand Up @@ -1050,7 +1050,7 @@ my class X::Undeclared::Symbols does X::Comp {
new => "method call syntax",
foreach => "for",
use => '"v" prefix for pragma (e.g., "use v6;", "use v6.c;")',
need => '"v" prefix for pragma (e.g., "need v6;", "need v6.c;")',
need => '"v" prefix and "use" for pragma (e.g., "use v6;", "use v6.c;")',
}
$r ~= "Undeclared routine" ~ (%.unk_routines.elems == 1 ?? "" !! "s") ~ ":\n";
for %.unk_routines.sort(*.key) {
Expand Down

0 comments on commit 0a73f19

Please sign in to comment.