½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 86 | Á¶È¸¼ö 1,926 | µî·ÏÀÏ 2003-11-04 15:07:03

´Ð³×ÀÓ

sunny97

À̸ÞÀÏ

orange123@orgio.net

Á¦¸ñ

[´äº¯] [´äº¯] [´äº¯] [´äº¯] Ä«Å×°í¸®º°·Î ºÐ·ùÇϴ°Í..perl·Î
³»¿ë

°¨»çÇÕ´Ï´Ù. ¿ì¼± À¥¿¡ ±¸µ¿½ÃÅ°´Â°ÍÀº °øºÎÇغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

±×·³ ÇÑ°¡Áö¸¸ ´õ ¿©Âã°Ú½À´Ï´Ù.

 

¿ì¼± Á¦ Äڵ带 Á» ºÁÁÖ¼¼¿ä

 

my %all = ();

open ( FIN, "data.txt");
while( <FIN> )
{
    chomp;
    s/^\s*"//g;
    s/"\s*$//g;
    s/\s*"\s*,\s*"\s*/","/g;
    @arr = split( /","/,$_);
        $all{ $arr[39] }{ $arr[40] }{ $arr[41] } = 1;

 }
close(fp);


foreach $k1 ( keys %all )
{
       print "$k1\n";
        $sub1 = $all{$k1};
        foreach $k2 ( keys %$sub1 )
        {
               print "===> $k2\n";
                $sub2 = $sub1->{$k2};
                foreach $k3 ( keys %$sub2 )
                {
                       print "===> ===> $k3\n";
                }
        }
}

 

°¢°¢ ¿ä¼Ò°¡ Àß ³ª¿À´Â°ÍÀº È®ÀÎÀ» Ç߰ŵç¿ä.. ±×·³. ¿©±â¼­..

¿ì¼± °¢°¢ hash¿¡ ³ÖÀº µ¥ÀÌÅ͸¦ Ä«Å×°í¸®º°·Î ±×·çÇÎ ÇÒ·Á°í Çϰŵç¿ä

¿¹¸¦µé¾î

¼­¿ï½Ã - /output/0
Ãæûµµ -/output/1
°­¿øµµ -/output/2


ÀÌ·±½ÄÀ¸·Î ¸ÅÇÎÇÒ¼ö ÀÖ°Ô Â¥·Á¸é ¾î¶²°É ÀÌ¿ëÇؼ­ ¾î¶»°Ô Â¥¾ß Çϳª¿ä?
Áú¹®ÀÌ ¸¹¾Æ Á˼ÛÇÕ´Ï´Ù. -_-

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Ä«Å×°í¸®º°·Î ºÐ·ùÇϴ°Í..perl·Î 2003-11-04 10:38:24
´ÙÀ½°Ô½Ã±Û splitÇϱâÀü ±Ã±ÝÇÑ°ÍÀÌ ÀÖ½À´Ï´Ù. 2003-11-05 15:40:20