in reply to Re: to pick the common element in the array
in thread to pick the common element in the array

I am new to perl can u explain the above code... Thanks
  • Comment on Re^2: to pick the common element in the array

Replies are listed 'Best First'.
Re^3: to pick the common element in the array
by zentara (Cardinal) on Mar 13, 2009 at 19:16 UTC
    I'm new to being a free tutor, get a tutorial on arrays and hashes. :-) Seriously, it is some advanced code work ( which by the way, I did not write....it's been passed around in books and tutorials for a long time. The general idea is to check all array elements...dump them in a hash for counting, then check the hash keys (an array) for 1's or 0's....(or something along those general lines).

    Probably every programming language has some sort of "array comparison" abilities... google for "perl array comparison", grasshopper, and when you are done reading all 5 million hits....come back and teach me. :-)


    I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness