조금 찾아보니
CPAN에 모듈이 있는 것 같기도 하고..
hash를 사용해 구현하기도 하는 듯...
CPAN에 모듈이 있는 것 같기도 하고..
hash를 사용해 구현하기도 하는 듯...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@set_list=(); | |
%divisors_hash=(); | |
unless(exists ($divisors_hash{$_})) { | |
$divisors_hash{$_}=1; #key가 set의 원소가 됨 | |
} | |
foreach (keys %divisors_hash) { | |
push @set_list, $_; | |
} |