You're not asking the right questions.

How does one, say, in a guest book limit the number of entries per page and number the pages, and at the same time alternate the back ground color between entries?

That is really asking "How do I do XYZ at a given point in a list of stuff?"

what is the syntax for eliminating a string from form input-namely "http://www." in a input type="text"name="url" situation.

That is really asking "How do I remove a substring from another string?"

You're too focused on your actual task to be able to learn the general principles. Take a step back and build slowly. Take some baby steps. Maybe, instead of working with the web, work in ASCII. Try running the following program:

use strict; my @array = 1 .. 10; my $num_per_row = 4; foreach my $i (0 .. $#array) { print $array[$i], ' '; print "\n" unless ($i + 1) % $num_per_row; } print "\n";
Use the principles in that program to do that image gallery thing.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.


In reply to Re: Syntax Questions by dragonchild
in thread Syntax Questions by rugrat

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.