| º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿ º¯¼ö :: °·ÂÇÏ°Ô :: Typed :: Array´Â °·ÂÇÏ°Ô ÀÔ·Â µÈ ¹è¿À»À§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Mark Ethan Trostler
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~metzzo/Java-4.7/Java.pm
º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿ ű×
º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿ ¼³¸í
º¯¼ö :: Strongly :: Typed :: Array´Â °·ÂÇÏ°Ô ÀÔ·Â µÈ ¹è¿À»À§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿Àº °·ÂÇÏ°Ô ÀÔ·Â µÈ ¹è¿À»À§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù .SynopsistHIS Ŭ·¡½º´Â º¯¼ö :: °·ÂÇÏ°Ô :: ÀԷ¶õ¿¡ ÀÇÇØ ÀÌ¿ëµÇÁö ¾Ê½À´Ï´Ù. ³» @array_of_ints : À¯Çü ( 'int'); # °¢ ½½·Ô¿¡´Â int ³» @Array_OF_RGB°¡ Æ÷ÇԵǾî¾ßÇÕ´Ï´Ù. À¯Çü (red_green_blue); # ³» ¿°Å Çü À¯Çü # ... ... $ array_of_ints = 44; # Groovy $ array_of_ints = 'YAH'; # croak! #ÀÌ ¹ßÀÌ »¡°£»ö, ÆĶõ»ö ¶Ç´Â ³ì»ö # 0 ÀÎ °æ¿ì 1À» ¹ÝȯÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é red_green_blue {local $ _ = shift; / »¡°£»ö z / xms || / ÆĶõ»ö z / XMS || / ³ì»ö z / xms; } $ array_of_my_very_own_types = 99; # croak! $ array_of_my_very_own_types = 'BLUE'; # È®ÀÎ! ¿ä±¸ »çÇ× : ¡¤ Perl.
º¯¼ö :: °·ÂÇÏ°Ô :: ÀÔ·Â µÈ :: ¹è¿ °ü·Ã ¼ÒÇÁÆ®¿þ¾î