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

does thie code work for common elements when the following two arrays are used? my @array1=('a','2','3','2'); my @array2=('1','2','3');
  • 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 Feb 21, 2014 at 11:37 UTC
    What happens when you try?

    Perl is good about doing what you mean. Usually, languages will separate ascii data from numerical data, it's called "context". The code I showed treated alphanumeric strings and numbers exactly the same. So it should work.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh