Ŭ·¡½º ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Robert S Muhlestein
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~rmuhle/
Ŭ·¡½º ű×
Ŭ·¡½º ¼³¸í
±âÁ¸ Perl 5 ¼ö¾÷ Ŭ·¡½º´Â ±âÁ¸ÀÇ Perl 5 Ŭ·¡½º°¡ Æ÷ÇÔ µÈ ¸ðµâ º°ÀÔ´Ï´Ù. Synopsis ÆÐÅ°Áö MyClass; ¾ö°ÝÇÑ 'subs'¸¦ »ç¿ëÇϽʽÿÀ. °æ°í ¾øÀ½; Ŭ·¡½º »ç¿ë »õ => 'Ŭ·¡½º :: new_init', class_attrs => , class_attrs_attrs_attrs_attr '=>'yes '}, class_attrs_pr => {'priv_no_accessors '=>'ok '}, attrs => , attrs_ro => , attrs_pr => , class_methods => {'empty_method '=> 0}, methods => {regstine_method =>' Ãß»ó '}, throws =>'x :: usage ', ¿¹¿Ü =>'x :: myown ',; ¹Í½º : ÆÐÅ°Áö myMixInMod; Ŭ·¡½º À¯Çü => '¹Í½º °¡´É', ...; ÆÐÅ°Áö useSmixins; Ŭ·¡½º ¹Í½º => , methods => {foo => sompackage :: a_foo_method ',}, ...; »ó¼Ó : Ŭ·¡½º À̸§ =>'mysuper ', attrs => ; ÆÐÅ°Áö ExtendSmysuper; Ŭ·¡½º »ç¿ë => 'mysuper', ...; ÆÐÅ°Áö À±¸® Ƽ½º : Ŭ·¡½º »ç¿ë »ó¼Ó => , ...; ÆÐÅ°Áö ¸Þ¼Òµå (ÀüÅë ³»º¸³»±â) : ÆÐÅ°Áö functionLib; Ŭ·¡½º pkg_methods => , ...; functionLib ': ALL'À» »ç¿ëÇϽʽÿÀ. functionLib qw (foo bar)¸¦ »ç¿ëÇϽʽÿÀ; µ¿Àû Ŭ·¡½º : Package DynamicOne; Ŭ·¡½º À¯Çü => 'µ¿Àû', class_methods => , ...; sub add_attr {my ($ class, $ attr_name) = @_; Classes attrs => ; $ Ŭ·¡½º¸¦ µ¹·ÁÁÝ´Ï´Ù. } ¿ä±¸ »çÇ× : ¡¤ Perl.
Ŭ·¡½º °ü·Ã ¼ÒÇÁÆ®¿þ¾î