There are many ways to build web apps with Perl nowadays. To me, it all depends where you're going to deploy your app, what does your server provider offer, what you're load is going to be, etc. Start with the 3 shiniest Perl web frameworks right now: Catalyst, Dancer and Mojolicious. All 3 can accommodate the tiniest app, but can grow with it in case you're app skyrockets in functionality.
For instance, a simple Dancer program as such could get you started (from Dancer::Tutorial):
# myapp.pl
use Dancer;
get '/' => sub {
return 'Hello World!';
};
start;
Install Dancer if you haven't done so already:
$ cpan Dancer
Then just fire off the built-in server from the command line:
$ perl myapp.pl
And take your browser to
http://localhost:3000.
For a full blown application with templates and configuration files, use the Dancer app starter:
$ dancer -a myapp
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.