krishnapriya has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Error in compiling the code
by samarzone (Pilgrim) on Mar 28, 2011 at 10:28 UTC

    If you use a module's methods without "use Module" statement, it gives a an error similar to the one given by you.

    [samar@malena ~]$ perl -e 'LWP::Protocol::https::Socket->new()' Can't locate object method "new" via package "LWP::Protocol::https::So +cket" (perhaps you forgot to load "LWP::Protocol::https::Socket"?) at + -e line 1.

    Is it the case?

    --
    Regards
    - Samar
Re: Error in compiling the code
by marto (Cardinal) on Mar 28, 2011 at 10:01 UTC
Re: Error in compiling the code
by GrandFather (Saint) on Mar 28, 2011 at 09:57 UTC
      If the module wasn't already installed they've have an error message telling them
Re: Error in compiling the code
by locked_user sundialsvc4 (Abbot) on Mar 28, 2011 at 16:37 UTC

    It is rather impossible to help you without a small snippet of example code, at least including the use statements, a barest idea of the package structure, and the actual (and near surrounding) lines where the call to new() is attempted.