projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Text::Abbrev warnings safe
[p5sagit/p5-mst-13.2.git]
/
lib
/
Text
/
Abbrev.pm
diff --git
a/lib/Text/Abbrev.pm
b/lib/Text/Abbrev.pm
index
08143fe
..
d7feedc
100644
(file)
--- a/
lib/Text/Abbrev.pm
+++ b/
lib/Text/Abbrev.pm
@@
-43,6
+43,7
@@
The values are the original list elements.
sub abbrev {
my ($word, $hashref, $glob, %table, $returnvoid);
+ @_ or return; # So we don't autovivify onto @_ and trigger warning
if (ref($_[0])) { # hash reference preferably
$hashref = shift;
$returnvoid = 1;