Good luck with your project - I've just taken a look and it looks like it's going in the right direction.

A few comments to keep you on your toes:

gt example:
if ('four' gt 'five'){ print "four is greater than five\n"; }
I would also look at fun stuff early on - eg, grab a web page and parse some information from it:
#!/usr/bin/perl -w use strict; use LWP::Simple; my $page = get('http://www.google.com'); # regex to extract certain text etc...
Just a personal preference, but I prefer to use CGI in OO way, because for me the code is easier to read, eg:
#!/usr/bin/perl -w use strict; use CGI; my $q = new CGI; print $q->header, $q->start_html, $q->table( $q->Tr( $q->th( 'This is a table header', ), $q->td( 'This is a table cell', ), ), ), $q->end_html; exit(0);

For me, $q is short for $query (but I don't just use it for forms these days...)

That way, you can 'hide' the details of namespaces and exporting a little longer. Or at least avoid issues when they use two modules that export subs with the same names to the main script (ack, I'm getting ham-handed in explaining this, sorry).

I see you have the SAMS book, but I'd suggest you also read "Learning Perl" (the 'Llama').

Something I don't see is an explanation of the line:

#!/usr/bin/perl

but perhaps I missed it...

Oh, and on the subject of first line, I think the -w is ignored under windows (someone, please correct me if I'm wrong here) and you should use "use warnings;" instead.

That's all for now. Perhaps when you have more up, you could ask the monastery to take a look - after all, the last thing we want is for a bunch of little brats coming here to come here and ask us questions when you get paid to do it* ;-)

good luck

cLive ;-)

* - err, that's meant to be humorous - sometimes I have to be explicit because people miss the wink...

--
seek(JOB,$$LA,0);


In reply to Re: Perl High School by cLive ;-)
in thread Perl High School by hsweet

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.