Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sockets code in Rakudo Perl

I've been trying to run some sockets code in Rakudo Perl (freshly built from the repository at http://github.com/rakudo/rakudo) but the implementation of IO::Socket::INET appears to be incomplete.

The code I'm trying to run is here: http://github.com/carlins/irc-client/blob/master/lib/IRC/Client.pm

This is the error:

    Method 'input-line-separator' not found for invocant of class 'IO;Socket;INET'
      in 'IRC::Client::connect' at line 30:lib/IRC/Client.pm
      in main program body at line 13:example.pl

The same thing happens with Rakudo Star, built from the official tarball. Pointers?

like image 631
Ankur Sethi Avatar asked Aug 03 '10 15:08

Ankur Sethi


1 Answers

The IRC::Client code is quite old now (look at the last commits) and it's quite probable it'll simply not work with current Rakudo. You may try the old alpha branch if you really want to try, there is plenty of old Perl 6 code which runs well on it.

About IO::Socket::INET, I don't really think it's incomplete or anything, the case you've shown is about IRC::Client directly. And as I said, Rakudo and even Perl 6 is still evolving and it's possible that something has changed about them.

like image 155
tadzik Avatar answered Oct 23 '22 07:10

tadzik