[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-unattended/var/se3/unattended/install/linuxaux/opt/perl/lib/5.10.0/pod/ -> perlko.pod (source)

   1  If you read this file _as_is_, just ignore the funny characters you
   2  see. It is written in the POD format (see perlpod manpage) which is
   3  specially designed to be readable as is.
   4  
   5  This file is in Korean encoded in EUC-KR. 
   6  
   7  ÀÌ ¹®¼­¸¦ perldocÀ» ½á¼­ º¸Áö ¾Ê°í Á÷Á¢ º¸´Â °æ¿ì¿¡´Â °¢ ºÎºÐÀÇ
   8  ¿ªÇÒÀ» Ç¥½ÃÇϱâ À§ÇØ ¾²ÀÎ =head, =item, 'L' µîÀº ¹«½ÃÇϽʽÿÀ.
   9  ÀÌ ¹®¼­´Â µû·Î perldocÀ» ¾²Áö ¾Ê°í º¸´õ¶óµµ Àдµ¥ º° ÁöÀåÀÌ
  10  ¾ø´Â POD Çü½ÄÀ¸·Î Â¥¿© ÀÖ½À´Ï´Ù.  ´õ ÀÚ¼¼ÇÑ °ÍÀº perlpod
  11  ¸Å´º¾óÀ» Âü°íÇϽʽÿÀ. 
  12  
  13  =encoding euc-kr
  14  
  15  =head1 NAME
  16  
  17  perlko - Perl°ú Çѱ¹¾î ÀÎÄÚµù
  18  
  19  =head1 DESCRIPTION
  20  
  21  PerlÀÇ ¼¼°è¿¡ ¿À½Å °ÍÀ» ȯ¿µÇÕ´Ï´Ù !
  22  
  23  
  24  PerlÀº 5.8.0ÆǺÎÅÍ À¯´ÏÄÚµå/ISO 10646¿¡ ´ëÇÑ ±¤¹üÀ§ÇÑ Áö¿øÀ» ÇÕ´Ï´Ù.
  25  À¯´ÏÄÚµå Áö¿øÀÇ ÀÏȯÀ¸·Î ÇÑÁßÀÏÀ» ºñ·ÔÇÑ ¼¼°è °¢±¹¿¡¼­
  26  À¯´ÏÄÚµå ÀÌÀü¿¡ ¾²°í ÀÖ¾ú°í Áö±Ýµµ ³Î¸® ¾²ÀÌ°í ÀÖ´Â ¼ö¸¹Àº ÀÎÄÚµùÀ»
  27  Áö¿øÇÕ´Ï´Ù.  À¯´ÏÄÚµå´Â Àü ¼¼°è¿¡¼­ ¾²ÀÌ´Â ¸ðµç ¾ð¾î¸¦ À§ÇÑ Ç¥±â ü°è -
  28  À¯·´ÀÇ ¶óƾ ¾ËÆĺª, Å°¸± ¾ËÆĺª, ±×¸®½º ¾ËÆĺª, Àεµ¿Í µ¿³² ¾Æ½Ã¾ÆÀÇ
  29  ºê¶ó¹Ì °è¿­ ½ºÅ©¸³Æ®, ¾Æ¶ø ¹®ÀÚ, È÷ºê¸® ¹®ÀÚ, ÇÑÁßÀÏÀÇ ÇÑÀÚ, Çѱ¹¾îÀÇ ÇѱÛ,
  30  ÀϺ»¾îÀÇ °¡³ª, ºÏ¹Ì Àεð¾ÈÀÇ Ç¥±â ü°è µî-¸¦ ¼ö¿ëÇÏ´Â °ÍÀ» ¸ñÇ¥·Î ÇÏ°í
  31  Àֱ⠶§¹®¿¡ ±âÁ¸¿¡ ¾²ÀÌ´ø  °¢ ¾ð¾î ¹× ±¹°¡ ±×¸®°í ¿î¿µ ü°è¿¡ °íÀ¯ÇÑ
  32  ¹®ÀÚ ÁýÇÕ°ú ÀÎÄÚµù¿¡ ¾µ ¼ö ÀÖ´Â ¸ðµç ±ÛÀÚ´Â ¹°·ÐÀÌ°í  ±âÁ¸ ¹®ÀÚ ÁýÇÕ¿¡¼­
  33  Áö¿øÇÏ°í ÀÖÁö ¾Ê´ø ¾ÆÁÖ ¸¹Àº ±ÛÀÚ¸¦  Æ÷ÇÔÇÏ°í ÀÖ½À´Ï´Ù.
  34  
  35  
  36  PerlÀº ³»ºÎÀûÀ¸·Î À¯´ÏÄڵ带 ¹®ÀÚ Ç¥ÇöÀ» À§ÇØ »ç¿ëÇÕ´Ï´Ù. º¸´Ù ±¸Ã¼ÀûÀ¸·Î
  37  ¸»Çϸé Perl ½ºÅ©¸³Æ® ¾È¿¡¼­  UTF-8 ¹®ÀÚ¿­À» ¾µ ¼ö ÀÖ°í, 
  38  °¢Á¾ ÇÔ¼ö¿Í ¿¬»êÀÚ(¿¹¸¦ µé¾î, Á¤±Ô½Ä, index, substr)°¡ ¹ÙÀÌÆ® ´ÜÀ§
  39  ´ë½Å À¯´ÏÄÚµå ±ÛÀÚ ´ÜÀ§·Î µ¿ÀÛÇÕ´Ï´Ù. (´õ ÀÚ¼¼ÇÑ °ÍÀº 
  40  perlunicode ¸Å´º¾óÀ» Âü°íÇϽʽÿÀ.) À¯´ÏÄڵ尡 ³Î¸® º¸±ÞµÇ±â Àü¿¡
  41  ³Î¸® ¾²ÀÌ°í ÀÖ¾ú°í, ¿©ÀüÈ÷ ³Î¸® ¾²ÀÌ°í ÀÖ´Â °¢±¹/°¢ ¾ð¾îº° ÀÎÄÚµùÀ¸·Î
  42  ÀÔÃâ·ÂÀ» ÇÏ°í À̵é ÀÎÄÚµùÀ¸·Î µÈ µ¥ÀÌÅÍ¿Í ¹®¼­¸¦ ´Ù·ç´Â °ÍÀ» µ½±â À§ÇØ
  43  'Encode'°¡  ¾²¿´½À´Ï´Ù. ¹«¾ùº¸´Ù 'Encode'¸¦  ½á¼­ ¼ö¸¹Àº ÀÎÄÚµù »çÀÌÀÇ
  44  º¯È¯À» ½±°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù.
  45  
  46  'Encode'´Â ´ÙÀ½°ú °°Àº Çѱ¹¾î ÀÎÄÚµùÀ» Áö¿øÇÕ´Ï´Ù.
  47  
  48  =over 4
  49  
  50  =item euc-kr 
  51  
  52    US-ASCII¿Í KS X 1001À» °°ÀÌ ¾²´Â ¸ÖƼ¹ÙÀÌÆ® ÀÎÄÚµù (ÈçÈ÷ ¿Ï¼ºÇüÀ̶ó°í
  53    ºÒ¸².) KS X 2901°ú RFC 1557 Âü°í.
  54  
  55  =item  cp949     
  56  
  57      MS-Windows 9x/ME¿¡¼­ ¾²ÀÌ´Â È®Àå ¿Ï¼ºÇü.  euc-kr¿¡ 8,822ÀÚÀÇ
  58      ÇÑ±Û À½ÀýÀ» ´õÇÑ °ÍÀÓ.  alias´Â uhc, windows-949, x-windows-949,
  59      ks_c_5601-1987. ¸Ç ¸¶Áö¸· À̸§Àº ÀûÀýÇÏÁö ¾ÊÀº À̸§ÀÌÁö¸¸, Microsoft
  60      Á¦Ç°¿¡¼­ CP949ÀÇ Àǹ̷Π¾²ÀÌ°í ÀÖÀ½.
  61  
  62  =item  johab          
  63  
  64      KS X 1001:1998 ºÎ·Ï 3¿¡¼­ ±ÔÁ¤ÇÑ Á¶ÇÕÇü.  ¹®ÀÚ ·¹ÆÛÅ丮´Â cp949¿Í
  65      ¸¶Âù°¡Áö·Î US-ASCII¿Í  KS X 1001¿¡ 8,822ÀÚÀÇ ÇÑ±Û À½ÀýÀ» ´õÇÑ °ÍÀÓ.
  66      ÀÎÄÚµù ¹æ½ÄÀº ÀüÇô ´Ù¸§. 
  67  
  68  =item iso-2022-kr     
  69  
  70      RFC 1557¿¡¼­ ±ÔÁ¤ÇÑ Çѱ¹¾î ÀÎÅÍ³Ý ¸ÞÀÏ ±³È¯¿ë ÀÎÄÚµùÀ¸·Î US-ASCII¿Í
  71      KS X 1001À» ·¹ÆÛÅ丮·Î ÇÏ´Â Á¡¿¡¼­ euc-kr°ú °°Áö¸¸ ÀÎÄÚµù ¹æ½ÄÀÌ ´Ù¸§.
  72      1997-8³â °æ±îÁö ¾²¿´À¸³ª ´õ ÀÌ»ó ¸ÞÀÏ ±³È¯¿¡ ¾²ÀÌÁö ¾ÊÀ½.
  73  
  74  =item  ksc5601-raw     
  75  
  76      KS X 1001(KS C 5601)À» GL(Áï, MSB¸¦ 0À¸·Î ÇÑ °æ¿ì) ¿¡ ³õ¾ÒÀ» ¶§ÀÇ
  77      ÀÎÄÚµù. US-ASCII¿Í °áÇÕÇÏÁö ¾Ê°í ´Üµ¶À¸·Î ¾²ÀÌ´Â ÀÏÀº X11 µî¿¡¼­ ±Û²Ã
  78      ÀÎÄÚµù (ksc5601.1987-0. '0'Àº GLÀ» ÀǹÌÇÔ.)À¸·Î ¾²ÀÌ´Â °ÍÀ» Á¦¿ÜÇÏ°í´Â
  79      °ÅÀÇ ¾øÀ½. KS C 5601Àº 1997³â KS X 1001·Î À̸§À» ¹Ù²Ù¾úÀ½.  1998³â¿¡´Â  µÎ
  80      ±ÛÀÚ (À¯·ÎÈ­ ºÎÈ£¿Í µî·Ï »óÇ¥ ºÎÈ£)°¡ ´õÇØÁ³À½.
  81  
  82  =back
  83  
  84   ¸î °¡Áö »ç¿ë ¿¹Á¦¸¦ ¾Æ·¡¿¡ º¸ÀÔ´Ï´Ù. 
  85  
  86  ¿¹¸¦ µé¾î, euc-kr ÀÎÄÚµùÀ¸·Î µÈ ÆÄÀÏÀ» UTF-8·Î º¯È¯ÇÏ·Á¸é ´ÙÀ½°ú
  87  °°ÀÌ ÇÏ¸é µË´Ï´Ù. 
  88  
  89  
  90      perl -Mencoding=euc-kr,STDOUT,utf8 -pe1  < file.euckr > file.utf8
  91  
  92  ¿ªº¯È¯Àº ´ÙÀ½°ú °°ÀÌ ÇÒ ¼ö ÀÖ½À´Ï´Ù. 
  93  
  94      perl -Mencoding=utf8,STDOUT,euc-kr -pe1  < file.utf8  > file.euckr
  95  
  96    ÀÌ·± º¯È¯À» Á»´õ Æí¸®ÇÏ°Ô ÇÒ ¼ö ÀÖµµ·Ï Encode ¸ðµâÀ» ½á¼­ 
  97  ¼ø¼öÇÏ°Ô Perl·Î¸¸ ¾²ÀÎ piconv°¡ Perl¿¡ µé¾î ÀÖ½À´Ï´Ù.
  98  ±× À̸§¿¡¼­ ¾Ë ¼ö ÀÖµíÀÌ piconv´Â Unix¿¡ ÀÖ´Â iconv¸¦
  99  ¸ðµ¨·Î ÇÑ °ÍÀÔ´Ï´Ù. ±× »ç¿ë¹ýÀº ¾Æ·¡¿Í °°½À´Ï´Ù.
 100  
 101     piconv -f euc-kr -t utf8 < file.euckr > file.utf8
 102     piconv -f utf8 -t euc-kr < file.utf8 > file.euckr
 103  
 104    ¶Ç, 'PerlIO::encoding' ¸ðµâÀ» ½á¼­ Çѱ¹¾î ÀÎÄÚµùÀ» ¾²¸é¼­ ±ÛÀÚ ´ÜÀ§
 105  (¹ÙÀÌÆ® ´ÜÀ§°¡ ¾Æ´Ï¶ó) 󸮸¦ ½±°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù.
 106  
 107    #!/path/to/perl 
 108  
 109    use encoding 'euc-kr', STDIN => 'euc-kr',
 110                           STDOUT-> 'euc-kr', STDERR=>'euc-kr';
 111  
 112    print length("°¡³ª");        # 2  (Å« µû¿ÈÇ¥´Â ±ÛÀÚ ´ÜÀ§ 󸮸¦ Áö½Ã)
 113    print length('°¡³ª');        # 4  (ÀÛÀº µû¿ÈÇ¥´Â ¹ÙÀÌÆ® ´ÜÀ§ 󸮸¦ Áö½Ã)
 114    print index("ÇÑ°­, ´ëµ¿°­", "¿°");   # -1 ('¿°'ÀÌ ¾øÀ½)
 115    print index('ÇÑ°­, ´ëµ¿°­', '¿°');   # 7 (8¹ø°¿Í 9¹ø° ¹ÙÀÌÆ®°¡ '¿°'ÀÇ
 116                                              Äڵ尪°ú ÀÏÄ¡ÇÔ.)
 117  
 118  
 119  =head2 ´õ ÀÚ¼¼È÷ ¾Ë°í ½ÍÀ¸¸é...
 120  
 121    PerlÀ» ¼³Ä¡ÇÏ¸é  ´ë´ÜÈ÷ ÀÚ¼¼ÇÑ ¹®¼­°¡ °°ÀÌ µû¶ó ¿À¸ç, ÀÌ ¹®¼­¸¦ ÅëÇØ
 122  Perl Àü¹Ý »Ó ¾Æ´Ï¶ó À¯´ÏÄÚµå Áö¿ø, EncodeÀÇ »ç¿ë¹ý µî¿¡ ¸¹Àº °ÍÀ»
 123  ¹è¿ï ¼ö ÀÖ½À´Ï´Ù.  ¾ÆÁ÷ ÀÌ ¹®¼­´Â ÇöÀç ¸ðµÎ ¿µ¾î·Î ¾²¿© ÀÖ½À´Ï´Ù.
 124  
 125  
 126  =head2 Perl °ü·Ã ÀÚ·á
 127  
 128  À§¿¡¼­ ¾ð±ÞÇÑ  ¹®¼­ ¿Ü¿¡µµ ´ÙÀ½°ú °°Àº ÀÚ·á°¡ ÀÖ½À´Ï´Ù. ÀÌ ¸ñ·ÏÀº °áÄÚ
 129  ¿ÏÀüÇÑ °ÍÀÌ ¾Æ´Ï°í ÀϺΠ´ëÇ¥ÀûÀÎ °Í¸¸ ¸ðÀº °ÍÀÔ´Ï´Ù.
 130  
 131  =over 4
 132  
 133  =item L<http://www.perl.com/>        
 134  
 135     O'ReillyÀÇ Perl À¥ ÆäÀÌÁö 
 136  
 137  =item L<http://www.cpan.org/>
 138  
 139      Comprehensive Perl Archive Network
 140  
 141  =item L<http://lists.perl.org/>    
 142  
 143    Perl ¸ÞÀϸµ ¸®½ºÆ®. ¸¹Àº ¸®½ºÆ® °¡¿îµ¥
 144    perl-unicode¿¡¼­ 'Encode'¿¡ ´ëÇØ ³íÀÇÇÔ.
 145  
 146  =back
 147  
 148  =head2 PerlÀ» ´õ ±í°Ô °øºÎÇϴµ¥ µµ¿òÀ» ÁÙ ¼ö ÀÖ´Â Çѱ¹¾î °ü·Ã »çÀÌÆ®
 149  
 150  =over 4
 151  
 152  =item L<http://www.perl.or.kr/>
 153  
 154    Perl Çѱ¹ »ç¿ëÀÚ ¸ðÀÓ 
 155  
 156  =item L<news:han.comp.lang.perl/>
 157  
 158    Çѱ¹¾î Perl ´º½º ±×·ì
 159  
 160  =item L<http://seoul.pm.org/>
 161  
 162    Perl ¸Á°Å½º (¼­¿ï)
 163  
 164  =item L<http://www.perlmania.or.kr/>
 165  
 166    Home for Korean Perlmanias
 167  
 168  =item L<http://www.oreilly.co.kr/perl/>
 169  
 170    O'Reilly¿¡¼­ ³ª¿Â Çѱ¹¾î Perl ¼­Àû ¸ñ·Ï
 171  
 172  =item L<http://www.perlschool.net/>
 173  
 174    Perl ±âÃÊ °­Á ¹× ¼Ò½º, ÃÖ±Ù µ¿Çâ, °ü·Ã ÇØ¿Ü »çÀÌÆ® ¸µÅ© 
 175  
 176  =item L<http://www.perl.co.kr>
 177  
 178    Perl¿¡ °ü·ÃµÈ CGI, DB, ¿¬µ¿ µî¿¡ ´ëÇÑ  Á¤º¸ ¹× ´º½º Á¦°ø
 179  
 180  =back 
 181  
 182  =head2 À¯´ÏÄÚµå ¹× Çѱ¹¾î ÀÎÄÚµù °ü·Ã ÀÚ·á
 183  
 184  =over 4
 185  
 186  =item L<http://www.unicode.org/>
 187  
 188    À¯´ÏÄÚµå ÄÁ¼Ò½Ã¾ö.  
 189  
 190  =item L<http://std.dkuug.dk/JTC1/SC2/WG2>
 191  
 192  ±âº»ÀûÀ¸·Î Unicode¿Í °°Àº ISO Ç¥ÁØÀÎ  ISO/IEC 10646 UCS(Universal
 193  Character Set)À» ¸¸µå´Â  ISO/IEC JTC1/SC2/WG2ÀÇ À¥ ÆäÀÌÁö. 
 194  
 195  =item L<http://jshin.net/faq/qa8.html>
 196  
 197    Çѱ¹¾î ¹®ÀÚ ÁýÇÕ ¹× ÀÎÄÚµù¿¡ ´ëÇÑ ¾È³».
 198  
 199  =item L<http://www.cl.cam.ac.uk/~mgk25/unicode.html>
 200  
 201    À¯´Ð½º/¸®´ª½º¿¡¼­ À¯´ÏÄÚµå¿Í UTF-8 »ç¿ë¿¡ ´ëÇÑ ¹®´äÁý(FAQ)
 202  
 203  =item L<http://kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html>
 204  
 205    À¯´Ð½º/¸®´ª½º¿¡¼­ À¯´ÏÄÚµå¿Í UTF-8 »ç¿ë¿¡ ´ëÇÑ ¹®´äÁý(FAQ)ÀÇ  Çѱ¹¾î ¹ø¿ª
 206  
 207  =back
 208  
 209  =head1 SEE ALSO
 210  
 211  L<Encode>, L<Encode::KR>, L<encoding>, L<perluniintro>, L<perlunicode>
 212  
 213  
 214  =head1 AUTHORS
 215  
 216  Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt>
 217  ½ÅÁ¤½Ä E<lt>jshin@mailaps.orgE<gt>
 218  
 219  =cut


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1