vbr.pl has asked for the wisdom of the Perl Monks concerning the following question:
Been using the Text::Levenshtein::XS module in some of my code and I've been getting this warning and don't really know what it means in this context: use of uninitialized value in subroutine entry at C:/strawberry/perl/site/lib/Text/Levenshtein/XS.pm
I looked at the code in the module and it's coming from
In my code I call the distance function in a basic if/else statement, comparing it's return value with a constant in the conditional statement. I have a lot of these checks so the warning clutters up my console. Thanks for any help.sub distance { # shift shift is faster than $_[0] $_[1] return Text::Levenshtein::XS::xs_distance( [unpack('U*', shift)], +[unpack('U*',shift)] ); # <-- this }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Warning from Text::Levenshtein::XS
by BrowserUk (Patriarch) on Mar 25, 2014 at 18:45 UTC | |
by vbr.pl (Initiate) on Mar 25, 2014 at 18:50 UTC | |
by nglenn (Beadle) on Oct 14, 2014 at 03:30 UTC |