... at C:/work/newdummy/../Perl/IO/Socket/Socket6.pm

What seems strange is that you have Socket6.pm in the directory .../IO/Socket/. And what's even stranger is that something is in fact pulling it in from there...

The only circumstance under which I can reproduce your problem can't locate object method "bootstrap" via package "Socket6" is by putting Socket6.pm where you have it, plus adjusting the namespace from package Socket6; to package IO::Socket::Socket6;, and then modifying the use statement use Socket6; in IO::Socket::INET6 to read use IO::Socket::Socket6;. In this case I also do get

Can't locate object method "bootstrap" via package "Socket6" (perhaps +you forgot to load "Socket6"?) at IO/Socket/Socket6.pm line 279.

(which is not too surprising, as the package is now "IO::Socket::Socket6"...)

So... did you do anything like this??

Normally, the directory layout should be:

.../Perl/Socket6.pm .../Perl/auto/Socket6/Socket6.so # the XS component of Socket6 (.d +ll on Windows) .../Perl/IO/Socket/INET6.pm

(where .../Perl is a directory that's in @INC)


In reply to Re: can't locate object method bootstrap by almut
in thread can't locate object method bootstrap by gokuraku

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.