Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: socket programming

by Cow1337killr (Monk)
on Jul 11, 2016 at 00:04 UTC ( #1167540=note: print w/replies, xml ) Need Help??


in reply to socket programming

The perl code that you provided runs with no complaints on my machine.

This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x86-multi-thread-64int

If I try to install the Socket module, I am told:

Socket is up to date (2.021).

If I look in C:\Strawberry\perl\lib\auto\Socket\, I see:

Socket.xs.dll

Upon further research, I find that the Socket module is in the list of Perl core modules.

Replies are listed 'Best First'.
Re^2: socket programming
by hmvasista (Novice) on Jul 11, 2016 at 00:30 UTC

    yes, I have installed the v5.24 too. At C:\strawberry\perl\site\lib\auto\Socket I see the following files: .packlist, Socket.bs, Socket.dll, I don't see Socket.xs.dll. Is there anything I am missing?

      .packlist, Socket.bs, Socket.dll, I don't see Socket.xs.dll

      The files you're seeing are not from Strawberry 5.24. They are part of a much older version.
      ".bs" files are no longer installed, and Strawberry now builds ".xs.dll" files instead of ".dll".

      Your problem will go away if you remove that Socket installation (in its entirety) from perl/site/lib.
      That will enable perl/lib/Socket.pm (which shipped with Strawberry) to be loaded - and all should work fine.

      However, it's likely that there are other extensions from the older perl present in perl/site/lib.
      Removing everything from the perl/site/lib folder is a valid option.
      That folder is normally empty when perl is installed - the only modules that go into it are the ones that you subsequently install (or, as in your case, the files that were there from a previous installation :-)

      Cheers,
      Rob

        Just to clarify, if it was me, I would uninstall and reinstall Strawberry Perl.

        (This is lingo from Windows XP, but your installation is similar.)

        Settings

        Control Panel

        Add or Remove Programs

        Scroll down to Strawberry Perl

        Click the Remove button.

        Exit the windows.

        Download the latest Strawberry Perl from the website, i.e., http://strawberryperl.com/.

        That should be a .msi file.

        Run it.

        I re-installed perl on my PC, and deleted the old folder. I could now see Socket.xs.dll and .packlist and bingo! now it works. Thanks a ton!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167540]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2022-01-24 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?