What can you do here?
If you are a beginner, or would like to refresh your Perl programming knowledge,
you can go over the Perl tutorial.
You will find a few advanced articles too, though most of the advanced articles are available to the
subscribers of the Perl Maven Pro service only.
If you are interested to listen to or even see other Perl developers,
the Perl Maven TV Show is a collection of such interviews.
Want to make sure you don't miss any of the Perl Maven articels?
Sign up to the newsletter!
The built-in rand() function of perl returns a random fractional number
between 0 and 1. 0 included but 1 not. Mathematicians would probably represent the range
of possible numbers with something like this: [0, 1) though, because the
numbers in Perl are limited to some 15 digits after the decimal point the actual
numbers rand() will generated don't cover the whole range.
rand(N) will generated a random number between 0 and N (not including N):
Generate random numbers in Perl with the rand() function
I know it was short, but at this point I had enough from the testing. I like testing, but having lots of test withouth the real application (even if we are talking about a clone)
looks pointless. Besides, I had doubts about the reusability of those tests, so instead of writing more tests,
I switched gears, and started to write the web application.
I was wondering a bit which framework should I use for the project. The MetaCPAN Web is written using Catalyst.
I know Dancer quite well. I have some experience with Mojolicious, but in the end I thought:
Let's not use any of these. Let's start by implementing everything in plain PSGI. It is both a learning
experience and at least at this point, the project does not need fancy things the frameworks might provide.
Create skeleton PSGI application for the SCO project