Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

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
1 vote
2 answers
295 views

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
263 views

I would like to convert ASCII art to something that takes less bytes. I have string like this: my $string = ' ██ ████ █'; And I would convert ...
7 votes
3 answers
603 views

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
  • 271
6 votes
2 answers
826 views

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
53 votes
29 answers
16k views

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,103
23 votes
5 answers
5k views

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.

AltStyle によって変換されたページ (->オリジナル) /