Created
March 19, 2012 07:27
-
-
Save tabris2012/2100779 to your computer and use it in GitHub Desktop.
This file contains 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
foreach $i (keys %WikiDic) { #等しいハッシュ値を探す | |
if ($length == $i) { #同じハッシュが存在した | |
foreach $j (@{$WikiDic{"$i"}}) { | |
if ($title eq $j) { #同じタイトル名が存在した | |
$check =0; #追加せずに離脱 | |
last; | |
} | |
} | |
if ($check) { #ハッシュ内に対応する文字列は無かった | |
push @{$WikiDic{"$i"}}, $title; | |
$check =0; | |
} | |
last; | |
} | |
} | |
if ($check) { #そのハッシュ値は無かった | |
$WikiDic{"$length"} = [$title]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment