This challenge is related to the Perl language. Note that challenges that require the answers to be in a specific language are generally discouraged.

learn more… | top users | synonyms

5
votes
2answers
168 views

Shortest class to implement Perl hash-of-hashes

At some point, I bumped into an SO question asking how to implement Perl's trivial hash-of-hashes data structure in Java. For those who don't know Perl, the hash value can be a scalar or another ...
1
vote
1answer
175 views

Better way to use `split` in Perl? [closed]

Can I assign the values of the array produced by split function, directly to different variables. For Instance I am currently doing this: @c=split ',',<>; So then I need to access the values ...
5
votes
2answers
532 views

Reducing Leibniz perl code in characters

Copied from http://stackoverflow.com/questions/14684511/reducing-perl-code-in-characters/14694805#14694805 So I had this question in a programming contest about calculating Leibniz formula in the ...
33
votes
16answers
4k views

Tips for golfing in Perl?

What general tips do you have for golfing in Perl? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Perl (e.g. "remove comments" is not ...
20
votes
5answers
3k views

Just Another Perl Hacker [closed]

Classic code golf challenge. Write the most obscure Perl program to print "Just another Perl hacker". Here's the Wikipedia article on it. Bonus points if it fits in 3 lines / 70 characters each.