Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Perlで2つの配列の要素から重複を排除する、重複した要素だけ抽出する ref: http://qiita.com/mugyuu/items/f5d825c5214a7848305a

View file3.txt
1 2 3 4 5 6
hoge# perl make_array_unique .pl
6
2
8
4
10
View file3.txt
1
@unique = grep { $count{$_} >= 2 } keys %count; # 要素数が2より小さいもののみ抽出
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.