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.

Filter by
Sorted by
Tagged with
54 votes
29 answers
15k 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 ...
commando's user avatar
  • 1,123
23 votes
5 answers
5k 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.
Thomas O's user avatar
  • 3,348
6 votes
2 answers
771 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> ...
Techmonk's user avatar
  • 163
6 votes
3 answers
524 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 ...
DVK's user avatar
  • 251
1 vote
2 answers
196 views

Perl: eval an unpacked hex value passed through any level of ssh

Task Make code given on the command line that takes an unpacked hex value as input and evals that in Perl. Like this: ...
Ole Tange's user avatar
  • 201
1 vote
0 answers
233 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 ...
Abdul Ahmed's user avatar