That is a big vague question. The kind I would ignore if it came from a newbie, but seeing as you are known around here, I will bite.

Firstly, unless you want to do everything the hard way, you need to use some modules from CPAN, so make sure it is warmed up and ready to go. :-)

What are you trying to achieve? Do you just want to learn, or do you have something specific in mind? I find that when learning it is always best to have a project in mind.

For example, for a simple project you could just wrapper the output of a system command on your computer and serve it up through the web server. For a simple project like this the CGI module will work well.

For example if you have a linux computer, you could wrapper a command like free or uptime and return it nicely formatted.

If CGI feels to primitive, or you want to work with templates or databases, then you need a web framework such as Catalyst or Dancer. (There are probably others). Personally I have used Catalyst quite a bit, and like it, and I have no experience with Dancer. Others here will be able to offer their opinions on which is better.

To suit one of those powerful frameworks, you need a more advanced project, and I suggest you look at one that makes use of a database back end. For example you might build a database of your MP3 collection. Music::Tag::MP3 Will read ID3 tags from your music files and DBIx::Class::Manual::Example has detailed examples of how to construct a database schema of a record collection. Once you have done the exercises in Catalyst::Manual::Tutorial you should be able to create a Catalyst application that will let you search your music collection, by title, artist, album etc.


In reply to Re: Web Programming: For Beginners by chrestomanci
in thread Web Programming: For Beginners by perl.j

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.