Socket Code in Rakudo Perl

I am trying to run some socket code in Rakudo Perl (recently built from the repository at http://github.com/rakudo/rakudo ), but the implementation of IO :: Socket :: INET seems incomplete.

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

This is mistake:

    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 the Rakudo Star, built from the official tarball. Pointers?

+5
source share
1 answer

The IRC :: Client code is quite old (look at the latest commits), and it is likely that it simply won’t work with the current Rakudo. You can try the old alpha branch, if you really want to try, there is a lot of old Perl 6 code that works well on it.

About IO :: Socket :: INET, I really do not think this is incomplete or something else, the case that you showed concerns IRC :: Client directly. And, as I said, Rakudo and even Perl 6 are still evolving, and it is possible that something has changed around them.

+4
source

All Articles