So, the question is ... what is it that you're trying, what are the exact error messages you're getting, and, if possible, what do you think the problem is? (I would suggest this going into a new thread at this point - almost no one but me will read your response to this at this point because of the high number associated with the "Re" in the subject line ;-})

As to your style question: by consistancy, I mean that inside a single block, each line should line up on the left. Don't indent a print statement by 2 spaces, and then the following statement indent by 4. And then a few lines later, go back to only 2 spaces. Each block should indent by the same amount so that similarly-indented lines of code should be buried in similarly-deep blocks. Bad:

if ($something) { print "here\n"; $count++; call_something(); print "here2\n"; get_input(); }
Good:
if ($something) { print "here\n"; $count++; call_something(); print "here2\n"; get_input(); }
Hope that helps.


In reply to Re^9: seeking advice on loops by Tanktalus
in thread seeking advice on loops by sierrastar

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.