Perl/Humor
Z Wikibooks, biblioteki wolnych podręczników.
Spis treści |
[edytuj] Obfuskowany kod
Some people claim Perl stands for 'Pathologically Eclectic Rubbish Lister' due to the high use of meaningful punctuation characters in the language syntax.
In common with C programming language, obfuscated code competitions are an interesting feature of the Perl culture. Similar to obfuscated code but with a different purpose, Perl Poetry is the practice of writing poems that can actually be compiled by perl. This practice is fairly unique to Perl, due to the large number of regular English words used in the language. New poems can regularly be seen in the Perl Poetry section of perlmonks.org.
[edytuj] Just another Perl Hacker
Your mission, should you choose to accept it, is to write a one-liner perl script which displays the phrase "Just another Perl hacker," (including the comma, and capitalization as shown). If successful, you win the right to use it as an email signature identifying yourself as a Perl hacker. Entries will be judged on how smart-ass the code is. Around 100 of the first JAPHs and some funky obfu Perl can be seen on CPAN.
[edytuj] Acme
W Perlu zawsze jest miejsce dla dziwnych modułów, a jednym z nich jest przestrzeń nazw "Acme::". Jeśli napisałeś moduł, który wie jak długa jest część ciągu znakowego albo konwertuje twój skrypt w zdjęcie Che Guevary, zamieść go tam.
[edytuj] Golf
Perl jest bardzo zwartym językiem. Tak zwartym, że w końcu powstała gra (zwana perlgolfem), wykorzystująca zwięzłość perla. Zasady perlgolfa są bardzo proste - podany problem należy rozwiązać za pomocą możliwie krótkiego (zawierającego najmniej znaków) programu w perlu. Wynik uzyskany w każdym zadaniu ("dołku") jest zapisywany i po wszystkich 18 "dołkach" zostaje ogłoszony zwycięzca.