Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
When I started out programming in Perl, I tended 
to use the examples in books as the basis for new projects.
The new book _Perl:  How to Program_ by Dietal & Dietal has tons
of source material on a wide variety of topics.  For example,
you could fiddle with DBI, MySQL, and Apache on your windows
or linux box and implement a web interface to a MySQL database.
( the book comes with everything you need ).

The code you write there would then form the backbone for
a logging system for any network related programs that you 
write.  I like to create generic tools that can be used 
anywhere and tend to stick them in category_Toolbox.pm

Here is a challenge:  write a generic mySQL database 
interface that:

1) dynamically creates tables in a mySQL database from user
input ( either by editing a file or asking questions...your
choice ).  User input includes the table name, each column 
name, the type for each column, and any associated 
arguments.

	a) make a subroutine that creates a column in the
      	table according to mySQL syntax.  You should keep
      	this simple and do not include all the options.

2) takes a series of data values, maps them to a known table,
and slams them into the database correctly.  It should 
report back to you exactly what it did.

3) allows users to query the database for info.

4) allows db query access by users using any browser.

Add more requirements as you see fit, but I'd keep it simple 
for the first few cuts.  You might want to limit version 0.1
to the requirements 1 and 2.  Once that's working, you can
then add in the user interface.

This is a project that I've had lots of fun messing with and
have working.  It's not big and is really useful.

In reply to Re: Idea Generation for New Programmer by moo
in thread Idea Generation for New Programmer by Tuna

Title:
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 How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found