Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: a lot of the CPAN big hitters have gone

by Anonymous Monk
on Nov 26, 2019 at 12:06 UTC ( #11109245=note: print w/replies, xml ) Need Help??


in reply to Re: a lot of the CPAN big hitters have gone
in thread a lot of the CPAN big hitters have gone

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
  • Comment on Re^2: a lot of the CPAN big hitters have gone

Replies are listed 'Best First'.
Re^3: a lot of the CPAN big hitters have gone
by Your Mother (Archbishop) on Nov 26, 2019 at 19:56 UTC

    Thank you very much for digging through that. Itís highly encouraging.

Re^3: a lot of the CPAN big hitters have gone
by Anonymous Monk on Dec 01, 2019 at 18:57 UTC
    I may try my hand at adding such an example to Mojolicious, since it would be trivial with those tools.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-10-23 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?