http://www.perlmonks.org?node_id=1032370


in reply to Removal of duplicated element in array.

As I already told you on another forum, the problem is most probably in the split. Try this instead:

my @match_to_array = split /\n/, $match;

Replies are listed 'Best First'.
Re^2: Removal of duplicated element in array.
by tty1x (Novice) on May 07, 2013 at 02:13 UTC
    I tried what you mentioned, it still didn't work.

    I also tried totally eliminating the split operator altogether, and directly assign the $match to the @match_to_array , it didn't work too.