LOGONLY mark 1408fb as NODOC since it appears to be a useful but minor warning cleanup
[p5sagit/p5-mst-13.2.git] / lib / Text / Abbrev.pm
index d4f12d0..c6be63b 100644 (file)
@@ -2,6 +2,8 @@ package Text::Abbrev;
 require 5.005;         # Probably works on earlier versions too.
 require Exporter;
 
+our $VERSION = '1.01';
+
 =head1 NAME
 
 abbrev - create an abbreviation table from a list
@@ -41,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;