Log in

No account? Create an account

Previous Entry | Next Entry


I ♥ Perl

  • 15th Mar, 2006 at 3:59 PM

People who know me know that Perl is my favourite programming language ever.

Today, a co-op was complaining about how some variables in Perl consist only of punctuation. But that is not a reason to hate Perl, it is a reason to love it!

Here's a one-liner, to prove my point:

perl -le'*{$#_}=sub{world},s;"*;$,=$";e,*{$"}=sub{Hello},print$_--->(),&$_'


( 43 comments — Leave a comment )
15th Mar, 2006 21:07 (UTC)
My gosh, I'm already guessing you've entered the Obfuscated Perl Code contest.
15th Mar, 2006 21:16 (UTC)
sfllaw just came over to my desk and explained this program to me. I think I understand it, but I'm no more inclined to learn Perl as a result...
(no subject) - sfllaw - 15th Mar, 2006 21:21 (UTC) - Expand
(no subject) - sfllaw - 15th Mar, 2006 21:20 (UTC) - Expand
(no subject) - smurfmatic - 15th Mar, 2006 21:50 (UTC) - Expand
(no subject) - sfllaw - 16th Mar, 2006 02:35 (UTC) - Expand
(no subject) - smurfmatic - 16th Mar, 2006 21:15 (UTC) - Expand
(no subject) - sfllaw - 16th Mar, 2006 22:35 (UTC) - Expand
(no subject) - westacular - 17th Mar, 2006 00:14 (UTC) - Expand
(no subject) - sfllaw - 17th Mar, 2006 05:16 (UTC) - Expand
15th Mar, 2006 21:15 (UTC)
Wow, and I thought I was the only old-school Perl hacker around these parts!

Not that I understand what you wrote... Perl is, after all, write-only. :-P
15th Mar, 2006 21:28 (UTC)
Write-only? I don't believe it.
(no subject) - peaceful_dragon - 15th Mar, 2006 21:35 (UTC) - Expand
(no subject) - sfllaw - 15th Mar, 2006 21:39 (UTC) - Expand
15th Mar, 2006 21:18 (UTC)
you just brought sunshine to an otherwise dork-free day.

thanks. ;)
15th Mar, 2006 21:28 (UTC)
Happy to oblige!
15th Mar, 2006 21:19 (UTC)
Should it bother me that I have absolutely no idea what that means?
15th Mar, 2006 21:27 (UTC)

I'm not bothered by my incomprehension of Latin. :)
(no subject) - eveglass - 15th Mar, 2006 22:24 (UTC) - Expand
(no subject) - sfllaw - 16th Mar, 2006 02:48 (UTC) - Expand
(no subject) - (Anonymous) - 15th Mar, 2006 21:33 (UTC) - Expand
15th Mar, 2006 21:38 (UTC)
way beyond geek, the coloured font adds extra nerd points too
sheesh :)
15th Mar, 2006 21:40 (UTC)
Aww... I'm flattered! :)
15th Mar, 2006 21:39 (UTC)
I think my brain just exploded.

Things like this make me question the legitimacy of me placing perl on my resume. I can usually follow non-line-noise scripts, at least. :-)
15th Mar, 2006 21:41 (UTC)
It's really simple to understand! Honest.

I didn't even do anything nasty: no strange whitespace, no non-standard side-effects, no deprecated features. Just step through the code and you'll see how it does what it does.
15th Mar, 2006 21:41 (UTC)
I'm assuming your just wrote Hello Word ;)

Personally, I'm a PHP <3er
15th Mar, 2006 21:42 (UTC)
I did!

I've never written serious PHP. But I suppose I should learn one day.
(no subject) - jenunderscore_ - 15th Mar, 2006 21:51 (UTC) - Expand
(no subject) - sfllaw - 16th Mar, 2006 03:10 (UTC) - Expand
(Deleted comment)
(no subject) - sfllaw - 16th Mar, 2006 03:11 (UTC) - Expand
(Deleted comment)
(no subject) - sfllaw - 16th Mar, 2006 03:28 (UTC) - Expand
(Deleted comment)
16th Mar, 2006 02:43 (UTC)
Ha ha! That's exactly what it is.
15th Mar, 2006 23:16 (UTC)
Urgh :P "perl is great because"... followed by an example of it's worst points, imho. Actually that's great... if job security is what you're looking for.
16th Mar, 2006 01:31 (UTC)
I believe the word you are looking for is "irony".
16th Mar, 2006 01:57 (UTC)
People like you is why I have learned Python. :)
16th Mar, 2006 02:42 (UTC)
Come now! Python is full of golfing goodness.
16th Mar, 2006 05:53 (UTC)
I was going to call that a sin against nature, but then I thought about some of the generic C++ code I've been writing recently. I made baby Jesus cry.
16th Mar, 2006 05:54 (UTC)
Hurray for template-based blasphemy! Bonus points if you abuse the CPP while you're at it.
(no subject) - ringzero - 16th Mar, 2006 07:24 (UTC) - Expand
16th Mar, 2006 06:01 (UTC)
Did you know that there are people out there that don't like Perl? It's a wacky world we live in.
16th Mar, 2006 06:14 (UTC)
Yeah, I know! Isn't that crazy?
16th Mar, 2006 20:00 (UTC)
Down with Perl! Haskell forever!

Any language that doesn't require category theory to understand just isn't worth learning.
16th Mar, 2006 20:39 (UTC)
Where is this animosity coming from? Perl and Haskell are equally misconstrued.
( 43 comments — Leave a comment )