data.txt´Â ¾Æ·¡°Í
"4","s","vvvvvvv","32A","µµ½Ã°¡½º","¼¿ïƯº°½Ã","°³²±¸","³íÇöµ¿"
"5","w","ggggggg","56B","µµ½Ã°¡½º","¼¿ïƯº°½Ã","µ¿ÀÛ±¸","½Å´ë¹æ1µ¿"
"6","t","yyyyyyy","67B","µµ½Ã°¡½º","Ãæû³²µµ","ûÁÖ½Ã","¿ë¾Ïµ¿"
"6","t","yyyyyyy","67B","µµ½Ã°¡½º","Ãæû³²µµ","ûÁÖ½Ã","ºÒ´çµ¿"
"6","t","yyyyyyy","67B","µµ½Ã°¡½º","Ãæû³²µµ","ûÁÖ½Ã","µÎÁ¤µ¿"
"6","t","yyyyyyy","67B","µµ½Ã°¡½º","°æ»ó³²µµ","ÁøÇؽÃ","¼®µ¿"
¾È³çÇϼ¼¿ä.. Á¦°¡ ÇÏ°íÀÚ Çϴ°ÍÀº..
¿¹¸¦ µé¾î ÀÌ·± ÆäÀÌÁö¸¦ ¸¸µå´Â°ÍÀÔ´Ï´Ù.
óÀ½¿£ ¼¿ïƯº°½Ã Ãæû³²µµ °æ»ó³²µµ ÀÌ·¸°Ô ³ª¿À°Ô Çϱ¸¿ä. index.html¿£..
µÎ¹ø° sub.html¿£ ¼¿ïƯº°½Ã¸¦ ´·¶À»¶§´Â °³²±¸ µ¿ÀÛ±¸ µîÀÌ »Ñ·ÁÁ®¾ß ÇÕ´Ï´Ù.
ÀÌ·±½ÄÀ¸·Î ÆäÀÌÁö ±¸¼ºÀ» Çϴ°ÍÀ» perl·Î ©·Á°í Çϴµ¥¿ä~
¾Æ·¡±îÁö ®´Âµ¥ ±× ´ÙÀ½.. ÀÌ °ªµéÀ» ¾î¶»°Ô ÇØ¾ß Çϴ°ǰ¡¿ä?
¾Æ½Ã¸é Á» ¾Ë·ÁÁÖ¼¼¿ä -_-;;
open (fp, "data.txt");
while (<fp>) {
chomp;
s/^\s*"//g;
s/"\s*$//g;
s/\s*"\s*,\s*"\s*/","/g;
@arr = split( /","/,$_);
$all{ $arr[6] }{ $arr[7] }{ $arr[8] } = 1;
}
# @keys = keys %all;
# print @keys;
close fp;
%hash = ();
foreach $s1 (keys %all)
{
$addr2 = $all{$s1};
%hash2 = ();
foreach $s2 (keys %$addr2)
{
$addr3 = $addr2->{$s2};
%hash3 = ();
foreach $s3 (keys %$addr3)
{
}
}
}
@keys = keys %{$all{'¼¿ïƯº°½Ã'}};
print @keys;