Subject: | Nuisance warning |
Date: | Tue, 2 Feb 2016 17:09:12 -0500 |
To: | bug-Cache-Memcached [...] rt.cpan.org |
From: | Jim Schueler <jim [...] tqis.com> |
Encountered the following warning when connecting via a unix socket:
Use of uninitialized value $ip in substitution (s///) at
/usr/share/perl5/Cache/Memcached.pm line 236.
Propose the following remedy:
diff /usr/share/perl5/Cache/Memcached.pm /tmp/Memcached.pm
234a235,236
Show quoted text
> my ($ip, $port) = $host =~ /(.*):(\d+)$/;
> $ip =~ s/[\[\]]//g; # get rid of optional IPv6 brackets
246,248d247
< my ($ip, $port) = $host =~ /(.*):(\d+)$/;
< $ip =~ s/[\[\]]//g; # get rid of optional IPv6 brackets
<
Thanks!