What parts are problematic?
As you know Ruby, I'll give you some simple/simplicistic transaltion rules for Ruby to Perl:
In reply to Re^3: Sending a packet and getting reply.
by Corion
in thread Sending a packet and getting reply.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |