in reply to Passing List::Compare a list of arrays

I do not know what your code is trying to achieve but

$lcm=List::Compare=>new
looks suspicious. Should it not be
$lcm=List::Compare->new