Questions tagged [perl]

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

-12
votes
16answers
314 views

Sequence and Series

Use any programming language to display numbers divisible by 1000000 that are greater than 1 and less than 10000000. Each number should be displayed in new line. Your program should display exactly: <...
1
vote
0answers
176 views

Perl - convert ASCII art to use x operator [closed]

I would like to convert ASCII art to something that takes less bytes. I have string like this: my $string = ' ██ ████ █'; And I would convert ...
6
votes
2answers
354 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 ...
7
votes
2answers
655 views

Reducing Leibniz perl code in characters

This Perl code is supposed to calculate the Leibniz formula. The original problem is here. The input format is: T <T test cases, each on their own line> ...
45
votes
17answers
9k 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 ...
22
votes
5answers
4k 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.