[Bug 327218] [NEW] Quotation breaks usage of INET6
Mark Schouten
mark at prevented.net
Mon Feb 9 15:23:05 UTC 2009
Public bug reported:
When trying to use an inet6 server in Net::IMAP::Simple, you get the
following error:
Can't locate IO::Socket::INET6 in @INC (@INC contains:
/usr/lib/nagios/plugins /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
/usr/share/perl5/Net/IMAP/Simple.pm line 162.
This is because of the following line:
require 'IO::Socket::INET6';
The manpage states:
If you try this:
require Foo::Bar; # a splendid bareword
The require function will actually look for the "Foo/Bar.pm" file in the directories specified in the @INC array.
But if you try this:
$class = 'Foo::Bar';
require $class; # $class is not a bareword
#or
require "Foo::Bar"; # not a bareword because of the ""
The require function will look for the "Foo::Bar" file in the @INC array and will complain about not finding "Foo::Bar" there.
See attached diff to fix.
** Affects: libnet-imap-simple-perl (Ubuntu)
Importance: Undecided
Status: New
--
Quotation breaks usage of INET6
https://bugs.launchpad.net/bugs/327218
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list