Maybe it's caused by newline? and I should chomp the elements?
Yes and yes! :-)
As mentioned below, try setting $Data::Dumper::Useqq=1; before calling Dumper.
In reply to Re^3: Search element of array in another array
by Anonymous Monk
in thread Search element of array in another array
by better
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |