sun@icgeb - just to make it clear - in order to help you, you need to help us by using proper markup (formatting tags) in your posts, and reading Markup in the Monastery should help you with any questions.

Secondly, if you are new to perl, and looking at what you have posted already, you should always use strictures i.e.

use strict; use warnings; ## and possibly if you want a little more explanations of those warnin +gs use diagnostics;
This will at least force you to post code here that at least compiles, even if it doesn't give you what you want.
Then you can say things like "I have this code which i want to do X or think should do Y:"
...code...

"...which gives this error..."
...error message... and/or ...output from the code...

"...What am i doing wrong!?"...

Hope this helps.

Just a something something...

In reply to Re^4: how do I find one number that matches in elements of same array and combine those elements? by BioLion
in thread how do I find one number that matches in elements of same array and combine those elements? by sun@icgeb

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.