PDA

View Full Version : Anyone love Perl?



mdipi
December 14th, 2004, 09:21 PM
I do! :thumb:

This language is FUN! and its sooo easy to get used to! If you know PHP you will catch onto Perl very fast and its just great!

Anyone else love Perl?

idoik
December 14th, 2004, 09:26 PM
perl is lame python is god!

for example i invented a code that can do a bad thing but i wont tell what it does you must learn for your self

edit: don't do that

Yeldarb
December 14th, 2004, 10:25 PM
while 1: is never good :P (escpecially with no breaks)

prstudio
December 14th, 2004, 10:42 PM
<%
Response.write "no"
%>

MTsoul
December 14th, 2004, 10:51 PM
<?
while(1) {
echo "php > all.<br />";
}
?>
:P

Im not too familiar with Perl actually. Is it sort of like cgi? because movabletype uses it when it's in the cgi-bin. I hear python is god - hard to master, but as powerful as god.

nobody
December 14th, 2004, 10:52 PM
Eh diamonds are nicer

hheheeh :beam:

Ben H
December 15th, 2004, 12:09 PM
<?php
$connection1 = fsockopen ("python.org", 80);
$connection2 = fsockopen ("perl.org", 80);
while (1) {
fsenddata ("foobardgflhgsfdlgjsklfjghklfsdhgksjfdhgksjhfdlg You are being DoSed", $connection1);
fsenddata ("foobardgflhgsfdlgjsklfjghklfsdhgksjfdhgksjhfdlg You are being DoSed", $connection2);
}
echo ("So you see, PHP rules all :P");
?>

Hans Kilian
December 15th, 2004, 12:38 PM
I love Perl.

For instance... count the number of times each character appears in a file:

type file.txt | perl -e "@a = split(q{}, join(q{}, <>)); foreach (@a) { $b{$_}++; } foreach (sort (keys %b)) { print qq{$b{$_} $_\'s\n}; }"

That's just beautiful IMO... :)

@om3ga: I think your footer is using all my CPU.

λ
December 15th, 2004, 01:19 PM
while 1: is never good :P (escpecially with no breaks)
while 1: can be more readable than other constructs ;)

I like Python more - Perl can be good for quick one-liners though.

MTsoul
December 15th, 2004, 05:14 PM
<?php
$connection1 = fsockopen ("python.org", 80);
$connection2 = fsockopen ("perl.org", 80);
while (1) {
fsenddata ("foobardgflhgsfdlgjsklfjghklfsdhgksjfdhgksjhfdlg You are being DoSed", $connection1);
fsenddata ("foobardgflhgsfdlgjsklfjghklfsdhgksjfdhgksjhfdlg You are being DoSed", $connection2);
}
echo ("So you see, PHP rules all :P");
?>
You know, if you have while(1), you'll never have that echo statement executed :P

Ben H
December 16th, 2004, 09:16 AM
Oh ya!

Thanks!