Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Perl tests

by packetstormer (Monk)
on Dec 01, 2010 at 11:54 UTC ( #874650=perlquestion: print w/replies, xml ) Need Help??
packetstormer has asked for the wisdom of the Perl Monks concerning the following question:

This isn't really a coding question but I am moving through a book trying to learn Perl. I would love to be able to go to a site somewhere and get tested on some of the parts I just learned.

Does anyone know of such place? Somewhere that assigns tasks to test your knowledge? E.g

1) Write a perl script to accept a file name from a user then read the file, line by line, and check for the number of occurances of a character, provided by the user.

2) Create a hash with the days of February. Using keys and values functions split the %hash into arrays and loop through each key and display is value.

This are things I just made up now but I would love to be given small tasks to see if I really understand what I just learned. I find this forum useful because sometimes, when the questions are aimed at beginners, I take the question and try to solve it myself. Anyway, does anyone know of such a place?

Replies are listed 'Best First'.
Re: Perl tests
by kcott (Chancellor) on Dec 01, 2010 at 12:03 UTC

    Take a look at Perl Puzzles - that has quite a few links to the types of tasks/challenges that you seem to be after.

    -- Ken

      How did I miss that!? Thanks
Re: Perl tests
by Ratazong (Monsignor) on Dec 01, 2010 at 12:09 UTC
Re: Perl tests
by chrestomanci (Priest) on Dec 01, 2010 at 12:21 UTC

    You might take a look at It is a chained collection of puzzles which you solve by writing a computer program for each. The solution of each puzzle leads to the next one, so you can't solve them out of order.

    Despite the name there is no requirement to use a specific programming language to solve the puzzles. There is a solutions Wiki where people have posted code to solve the problems in dozens of programming languages including perl.

    A down side of the site is that you have to solve the problems in order, so if you get stuck on one, you cannot continue. Also as they are puzzles you need to have a Eureka moment on each to progress.

Re: Perl tests
by iangibson (Scribe) on Dec 02, 2010 at 00:57 UTC
Re: Perl tests
by vertigo7 (Monk) on Dec 02, 2010 at 15:08 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://874650]
Approved by marto
Front-paged by planetscape
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-07-24 07:13 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (348 votes). Check out past polls.