http://www.perlmonks.org?node_id=1037847


in reply to Perl Puzzles

I think you will find that Seekers of Perl Wisdom is itself a treasure trove of over a million questions that are candidates for beginner exercises.

Granted, sometimes the biggest problem is to figure out what the original poster meant to ask in the first place. Once this is clear, you will frequently find that the question is too specialized or subtle to use as a beginner's exercise.

Once these hurdles are passed, you will often find yourself with a question in hand that is both clear enough and fundamental enough to be enlightening. Without looking at the answers of others, provide your own answer. Look through the documentation to provide support for your answer. (Becoming familiar with the extensive documentation provided with Perl both on- and off-line is valuable in and of itself.) Write some small code examples! (Note that the word examples is plural; variations on working code are often instructive and may produce enlightening extensions to the original question. Play with the code!) Then, and only then, look at the answers to the question provided by others. Then start over: check their documentation links; test and vary their code examples; etc.

I go through SoPW looking for regex-related questions with precisely this attitude. I may not come up with an answer that is original or particularly helpful to the OPer, but I will often benefit myself!

May your quest(ion)ing be fruitful!