Perl IRC bots are simple .. we have the entirety of CPAN which includes the Bot::BasicBot. And perl wasn't designed for making bots, but it was designed to deal well with strings. And IRC, like most protocols, is a conversation of strings over a socket.
PHP, on the other hand was formed (I can't say created because that would infer some intelligence in the forming) as a web-automation language. Trying to force it to do sockets and other non-web things is nuts
21 comments so far
I thought you didn't like PHP :)
2 years, 1 month ago by zeen
I don't like Perl either
2 years, 1 month ago by MattJ
How about LISP? :)
2 years, 1 month ago by zeen
From what I can make out, you're saying perl is better (which in so many respects is true)
However I don't think you mean to.
Let's assign the arbitrary value of '10' to perl. And write your pseudocode in real code:
$php = $perl++This says, assign the value of
$perl(10) to$php, then increment$perl. So now$php == 10and$perl == 11So I'm guessing you really meant
$php = $perl + 1, which is incorrect :-DCheers!
The Code Pedant
2 years, 1 month ago by RickMeasham
Haha, good catch :P
2 years, 1 month ago by zeen
Pedant is not the word... and tell that to the
2 years, 1 month ago by MattJ
people who coined C++ :)
2 years, 1 month ago by MattJ
But no, they incremented C. They weren't saying something else was better than C, but that they had incremented C itself
2 years, 1 month ago by RickMeasham
Ok, you win. PHP is ++Perl. hands Rick a cookie
2 years, 1 month ago by MattJ
Even that would result in both being equal :)
2 years, 1 month ago by zeen
With Perl being incremented first :)
2 years, 1 month ago by zeen
Perl can be as much Perl as it wants, it makes no difference to me :)
2 years, 1 month ago by MattJ
I might make a Perl IRC bot :P
2 years, 1 month ago by welp
I have a PHP Jabber one :)
2 years, 1 month ago by zeen
Just don't make it a Jabber one, or a PHP one. PHP was not designed for bots, and Jabber was not designed for Perl
2 years, 1 month ago by MattJ
@zeen !!!
2 years, 1 month ago by MattJ
I don't think any of the mainstream languages were designed for making bots in particular.
2 years, 1 month ago by zeen
Correct, Lua is not mainstream. Besides... Perl is as hacky as IRC, so I don't really mind what welp might do :)
2 years, 1 month ago by MattJ
Lol.
2 years, 1 month ago by zeen
Perl IRC bots are simple .. we have the entirety of CPAN which includes the Bot::BasicBot. And perl wasn't designed for making bots, but it was designed to deal well with strings. And IRC, like most protocols, is a conversation of strings over a socket.
PHP, on the other hand was formed (I can't say created because that would infer some intelligence in the forming) as a web-automation language. Trying to force it to do sockets and other non-web things is nuts
2 years, 1 month ago by RickMeasham
I agree :) Perl + IRC go hand-in-hand, PHP is over-used and overrated
2 years, 1 month ago by MattJ