in reply to Re: how do I find one number that matches in elements of same array and combine those elements?
in thread how do I find one number that matches in elements of same array and combine those elements?

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: how do I find one number that matches in elements of same array and combine those elements?

Replies are listed 'Best First'.
Re^3: how do I find one number that matches in elements of same array and combine those elements?
by Anonymous Monk on Jul 31, 2009 at 07:11 UTC
    I tried making an array out of each element or cluster and then tried using =~ and if it matches, then push both in a new array and then delete the duplicates from that array.But,I am not able to get the output

    Show your attempt, put it in code tags

      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...