µ¥ÀÌÅÍ :: dref.

º¹ÀâÇÑ µ¥ÀÌÅÍ ±¸Á¶¿¡ ´ëÇÑ ±¸ºÐ Å° ¾×¼¼½º
Áö±Ý ´Ù¿î·Îµå

µ¥ÀÌÅÍ :: dref. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Matthew Simon Cavalletto
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~ferrency/

µ¥ÀÌÅÍ :: dref. ű×


µ¥ÀÌÅÍ :: dref. ¼³¸í

º¹ÀâÇÑ µ¥ÀÌÅÍ ±¸Á¶¿¡ ´ëÇÑ ±¸ºÐ Å° ¾×¼¼½º µ¥ÀÌÅÍ :: DREF´Â Áßø µÈ Perl µ¥ÀÌÅÍ ±¸Á¶ ³»ÀÇ °ª¿¡ ¾×¼¼½ºÇϱâÀ§ÇÑ ´É·üÀû ÀÎ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀÌ·¯ÇÑ ±¸Á¶´Â ÀϹÝÀûÀ¸·Î Çؽà ¹× ¹è¿­ÀÇ ³×Æ®¿öÅ©À̸ç, ÀϺδ °£´ÜÇÑ ½ºÄ®¶ó °ª°ú ±¸Á¶ÀÇ ´Ù¸¥ Ç׸ñ¿¡ ´ëÇÑ ÂüÁ¶¸¦ Æ÷ÇÔÇÏ´Â ´Ù¾çÇÑ Å¬·¡½º·Î Ãູ¹ÞÀ» ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅÍ :: DREF ÇÔ¼ö¸¦ »ç¿ëÇÏ¸é ±¸ºÐ µÈ Å° ¹®ÀÚ¿­À» »ç¿ëÇÏ¿© ÀÌ·¯ÇÑ ±¸Á¶ ³»¿¡¼­ ¿øÇÏ´Â ³ëµå¿¡¼­ °ªÀ» ¼³Á¤ÇÏ°í °Ë»öÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ±â´ÉÀº Á÷Á¢ º¯¼ö ¾×¼¼½ºº¸´Ù ´À¸®Áö ¸¸ ³ôÀº ¼öÁØÀÇ ½ºÅ©¸³Æà ¹× ±âŸ ´ÊÀº ¹ÙÀεù µ¿ÀÛ¿¡ ´ëÇÑ Ãß°¡ÀûÀÎ À¯¿¬¼ºÀ» Á¦°øÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, À¥ ±â¹Ý ÀÀ¿ë ÇÁ·Î±×·¥Àº DREF¸¦ »ç¿ëÇÏ¿© »ç¿ëÀÚ Á¤ÀǸ¦ ´Ü¼øÈ­ ÇÒ ¼ö ÀÖÀ¸¹Ç·Î »ç¿ëÀÚ°¡ query.param.foo.a of À¯Æ¿¸®Æ¼ ÇÔ¼öÀÇ query.param.foo.a Á¦Ç°±º, ÀÌÀü¿¡ À¯Áö °ü¸®¿Í °°Àº »ó´çÈ÷ ÀÐÀ» ¼öÀÖ´Â Àμö¸¦ ÂüÁ¶ ÇÒ ¼ö ÀÖ½À´Ï´Ù. º°µµÀÇ µ¥ÀÌÅÍ :: Ä÷º¼Ç ¸ðµâÀº Áßø µÈ µ¥ÀÌÅÍ ±¸Á¶¿¡¼­ ´Ù¾çÇÑ ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù. µ¥ÀÌÅÍ :: DREF Ãß»óÈ­ °èÃþÀÌ »ç¿ëµÇ¹Ç·Î ÀÌ·¯ÇÑ ±â´ÉÀº ÀÚü Å° °ª ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÏ´Â ¹è¿­, Çؽà ¶Ç´Â °´Ã¼¿Í µ¿ÀÏÇÏ°Ô ÀÛµ¿ÇؾßÇÕ´Ï´Ù. Synopsis Data :: Dref QW (dref_access)¸¦ »ç¿ëÇÕ´Ï´Ù. ³» $ hash = { 'Ç׸ñ'=> }; get_value_for_dref¸¦ Àμâ ($ ÇؽÃ, 'items.0'); set_value_for_dref ($ hash, 'items.1', 'µÎ ¹ø°'); set_value_for_root_dref ( 'myhash', $ hash); get_value_for_root_dref Àμâ ( 'myhash.items.0'); Data :: Dref QW (¼±ÅÃ); matching_keys ($ target, % filter_criteria) : $ key ¶Ç´Â @keys matching_values ($ target, % filter_criteria) : $ item ¶Ç´Â @items data :: dref qw (:); index_by_drefs ($ target, @drefs) : $ index ($ target, @drefs) : $ index_index_by_drefs ($ target, $ index_dref) : $ entry_ary »ç¿ë µ¥ÀÌÅÍ :: dref qw (: leaf); leaf_drefs ($ target) : @drefs leaf_values ($ target) : @values reaf_drefs_and_values ($ target) : % dref_value_pairs ¿ä±¸ »çÇ× : ¡¤ Perl.


µ¥ÀÌÅÍ :: dref. °ü·Ã ¼ÒÇÁÆ®¿þ¾î