Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Perl equivalent of the ruby koans project?

Tags:

ruby

perl

Is there a Perl equivalent to the ruby-koans project?

When I was starting to learn ruby a few months ago I stumbled across ruby-koans and it was a huge help for learning the basics of the language.

I now need to poke at some Perl code, and while I've hacked together a few Perl scripts in the past I've never really learned the language, and every time I have to refer back to older scripts I wrote for even simple things. I have a feeling that something like koans would make it much easier for me to learn and retain knowledge of Perl.

Does anything like that exist?

like image 417
Herms Avatar asked Mar 01 '10 19:03

Herms


3 Answers

Two possible options in absence of 100% identical alternative:

  1. A mid-point between perldoc and ruby koans is O'Reilly's Perl Cookbook. It offers working "how to solve this particular task" examples.

  2. As a DIY perl koan, how about perusing "perl" tag on StackOverflow and trying to answer the questions (without peeking at answers)? Not 100% the same but a great way to learn by doing.

like image 166
DVK Avatar answered Nov 15 '22 15:11

DVK


One great resource that I use to quickly move between languages is RosettaCode. Its not tutorials, but a wide assortment of simple programming tasks done in many languages. I find that if I know one or two languages on the page, using them, I can usually figure out how an unfamiliar language on the page works. The Ruby, Python, and Perl sections are even close alphabetically, making jumping back and forth easy.

like image 40
Eric Strom Avatar answered Nov 15 '22 14:11

Eric Strom


Perl happens to come with great documentation that is more than just a list of API functions, parameters and return types.

Those tutorials include a lot of code samples that show what to do and what not to do.

In my experience, one needs to read ALL of the bundled documentation at least once before seeking other sources of wisdom.

like image 42
Sinan Ünür Avatar answered Nov 15 '22 14:11

Sinan Ünür