Okay, the first thing you should do is construct a very small example. Your example should read two files only, and each file should only have two lines in it. Then you need to post those two files and try to describe what you are doing. For instance, "Given these two files, I want to produce this output....".

But really, when you are starting out programming, none of your programs should be longer than 10 lines of code until you learn the basics. Your code also needs to be readable, and yours isn't because sometimes you indent your code and other times you don't. In addition, perl indenting is 4 spaces, so you should configure your computer programming editor to indent 4 spaces. If you are not using a computer programming editor, that is your first mistake. There are many free computer programming editors which you can download, and they will automatically indent your code, and provide syntax highlighting, etc. which makes typing, editing, and debugging your code much easier.

This error:

Use of uninitialized value $xC1 in subtraction (-) at getrmsd2.pl line + 80.
is pretty easy to understand. It is saying that you never assigned a value to $xC1.

In reply to Re: Hello im new to programming i need help by 7stud
in thread Hello im new to programming i need help by fahadm89

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.