Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-05-21 08:50 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.