Text::Abbrev warnings safe
[p5sagit/p5-mst-13.2.git] / lib / Text / Abbrev.pm
index 08143fe..d7feedc 100644 (file)
@@ -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;