X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FText%2FAbbrev.pm;h=c6be63bcc60bae0e90c00b3548b5455904e7f247;hb=765d19531dbb4c32d1fcf33fa38e791ed5816743;hp=08143fea8fb19696709ce4f5298c4d600bac2fdb;hpb=b75c8c73cd7f3c92a16e03fb046f4e2a99363bc7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Text/Abbrev.pm b/lib/Text/Abbrev.pm index 08143fe..c6be63b 100644 --- a/lib/Text/Abbrev.pm +++ b/lib/Text/Abbrev.pm @@ -2,7 +2,7 @@ package Text::Abbrev; require 5.005; # Probably works on earlier versions too. require Exporter; -our $VERSION = '1.00'; +our $VERSION = '1.01'; =head1 NAME @@ -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;