Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
itís the tools

I was checking out the source code for wscat and noticed it looked like a trivial port to Perl. Then I searched ddg for "wscat perl" and the first result took me to Net::WebSocket where the changes mention a "wscat.pl demo script" (which it doesn't install, wtf). After installing Net::WebSocket the script wscat.pl failed to run because IO::Events was not installed. After installing IO::Events it still failed because MockReader was not installed. Trying to install MockReader seemed to simply reinstall Net::WebSocket and didn't fix the problem. Then I noticed @INC was modified by wscat.pl so I had to mkdir 'lib' and put MockReader.pm in a /lib relative to the location of wscat.pl. After the hassle, which only took a minute or two, the wscat.pl demo script appears to function and the example given for the javascript version worked perfectly! I guess it would be a good idea for someone to clean up the installation mess and release something useful like App::wscat so you can use Perl!

> wscat.pl ws://echo.websocket.org
> hi there
> hi there
> are you a happy parrot?
> are you a happy parrot?

https://github.com/websockets/wscat
https://metacpan.org/source/FELIPE/Net-WebSocket-0.21/demo/wscat.pl

In reply to Re^2: a lot of the CPAN big hitters have gone by Anonymous Monk
in thread a lot of the CPAN big hitters have gone by tobyink

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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others surveying the Monastery: (4)
    As of 2020-09-23 23:34 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      If at first I donít succeed, I Ö










      Results (132 votes). Check out past polls.

      Notices?