【发布时间】:2014-10-07 16:21:26
【问题描述】:
我想找出 2 个字符串数组的差异 我不熟悉 GREP 和 MAP 的使用。所以,我需要一点指导
这就是我想要做的......
my @array = (
'hello this is a text',
'this is a cat',
'this is a dog',
'this is a person',
'this is a computer',
'this is a code',
'this is an array',
'this is an element',
'this is a number'
);
my @array2 = (
'hello this is a text',
'this is a computer',
'this is an array',
);
my @output = (
'this is a cat',
'this is a dog',
'this is a person',
'this is a code',
'this is an element',
'this is a number'
);
【问题讨论】: