³ØŸÀÌ :: ÆÄÀÏ :: Hashify.

TIE :: FILE :: Hashify´Â ÆÄÀÏÀ» ±¸¹® ºÐ¼®ÇÏ°í Çؽÿ¡ °á°ú¸¦ ¹­´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

³ØŸÀÌ :: ÆÄÀÏ :: Hashify. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • The Apache License 2.0
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jonas Kramer
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jkramer/Tie-File-Hashify-0.03/lib/Tie/File/Hashify.pm

³ØŸÀÌ :: ÆÄÀÏ :: Hashify. ű×


³ØŸÀÌ :: ÆÄÀÏ :: Hashify. ¼³¸í

TIE :: FILE :: Hashify´Â ÆÄÀÏÀ» ±¸¹® ºÐ¼®ÇÏ°í °á°ú¸¦ Çؽÿ¡ ¹­´Â Perl ¸ðµâÀÔ´Ï´Ù. TIE :: FILE :: Hashify´Â ÆÄÀÏÀ» ÆĽÌÇÏ°í °á°ú¸¦ Çؽÿ¡ ¹­´Â Perl ¸ðµâÀÔ´Ï´Ù. Synopsis »ç¿ë Tie :: File :: Hashify; ³» % rc; ³» $ PATH = "$ env {home} /. some.rc"; # 'foo = bar'¿Í °°Àº ±¸¹® ºÐ¼® ¼± : Sub Parse {$ _ = ~ /^s*(s+)s*=s*); # Çü½Ä ½ÖÀ¸·Î 'key = value': ÇÏÀ§ Çü½Ä { "$ _ = $ _ "}; ³ØŸÀÌ (% rc, tie :: file :: hashify ', $ path, parse => parse, format => Çü½Ä); Àμâ "¿É¼Ç 'foo'= $ rc {foo} n"; # »õ ¿É¼ÇÀ» Ãß°¡ÇϽʽÿÀ. $ rc {bar} = 'moo'; # ÆÄÀÏÀ» ÀúÀå. ÀÌ ¸ðµâÀº °£´ÜÇÑ ÅؽºÆ® ÆÄÀÏÀ» ÆĽÌÇÏ°í ³»¿ëÀ» ÀÏ¹Ý Çؽÿ¡ ¸ÅÇÎÇÏ´Â µ¥ µµ¿òÀ̵˴ϴÙ. ÆÄÀÏ ÇàÀ» ¼±º°·Î Àаí Á¦°ø ÇÑ ÄÝ¹é ¶Ç´Â Ç¥Çö½ÄÀ» »ç¿ëÇÏ¿© Å°¿Í °ªÀ» ±¸¹® ºÐ¼®ÇÕ´Ï´Ù. Å° / °ª ½ÖÀº »ý¼º µÈ Çؽø¦ ÅëÇØ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Å° / °ª ½ÖÀ» ÆÄÀÏ¿¡ ´Ù½Ã ÀúÀåÇÒ ÁÙ¿¡ Å° / °ª ½ÖÀ» Æ÷¸ËÇÏ´Â ´Ù¸¥ ÄÝ¹é ¶Ç´Â Çü½Ä ¹®ÀÚ¿­À» Á¦°ø ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. Àμö (Çؽà ÀÚü¿Í ¹°·Ð ÆÐÅ°Áö À̸§ ÀÌÈÄ)´Â ÆÄÀÏÀÇ °æ·ÎÀÔ´Ï´Ù. ÆÄÀÏÀº ½ÇÁ¦·Î Á¸ÀçÇÏÁö ¾ÊÁö¸¸ Á¸ÀçÇÏÁö ¾Ê´Â ÆÄÀÏÀÇ °æ·Î¸¦ »ç¿ëÇÏ´Â °ÍÀº »õ ÆÄÀÏÀ» ÀÛ¼ºÇϱâ À§ÇØ Çü½Ä ÄݹéÀ» Á¦°øÇÏ´Â °æ¿ì¿¡¸¸ Àǹ̰¡ ÀÖ½À´Ï´Ù. µÎ ¹ø° Àμö ÈÄ¿¡ ¿É¼Ç ¸ñ·ÏÀº ´ÙÀ½°ú °°À» ¼ö ÀÖ½À´Ï´Ù. Àμö·Î ÇàÀ» »ç¿ëÇÏ¿© È£ÃâµÇ°í Çؽà ¿ä¼ÒÀÇ °ª°ú °ªÀ» ¹ÝȯÇؾßÇÕ´Ï´Ù. ¶Ç´Â ¹®ÀÚ¿­ ¶Ç´Â ÄÄÆÄÀÏ µÈ Á¤±Ô Ç¥Çö½Ä (QR //). Ç¥Çö½ÄÀº ¸ðµç ¶óÀο¡ Àû¿ëµÉ °ÍÀÌ°í $ 1 ÀÌÇϷμ­ 2 ´Þ·¯°¡ ³ªÁß¿¡ Å° / °ªÀ¸·Î »ç¿ëµË´Ï´Ù. Çü½Ä ÀÌÀÌ ÆÄÀÏ¿¡ ´Ù½Ã ¾µ ¼öÀÖ´Â ÀÛ¾÷À» Çü½ÄÈ­ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. µÎ °³ÀÇ Àμö (Å°¿Í °ª)¸¦ Àμö·Î ÃëÇÏ´Â ÄÚµå ÂüÁ¶ ÀÏ ¼ö ÀÖ½À´Ï´Ù (ÀÏ´Ü ÁÙ ¹Ù²Þ ¾øÀ½ - ÀÚµ¿À¸·Î Ãß°¡µÇÁö ¾Ê°í) ¶Ç´Â Å°¿Í °ª. RO ÀÌ°ÍÀÌ »ç½ÇÀ̶ó¸é Çؽø¦ º¯°æÇϸé CroakÀ̵ǹǷΠÄÜÅÙÃ÷°¡ ÆÄÀÏ¿¡ ´Ù½Ã ±â·ÏµÇÁö ¾Ê½À´Ï´Ù. ¸ðµç Àμö´Â ¼±Åà »çÇ×ÀÔ´Ï´Ù. arupments¸¦ÁÖÁö ¾ÊÀ¸¸é ÀϹÝÀûÀ¸·Î Á¤»óÀûÀÎ Çؽø¦ ¾ò½À´Ï´Ù. ¡¤ perl ¿ä±¸ »çÇ× : ¡¤ Perl.


³ØŸÀÌ :: ÆÄÀÏ :: Hashify. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

VCS :: FILE.

VCS :: FILEÀº ¹öÀü Á¦¾îÇÏ¿¡ÀÖ´Â ÆÄÀÏ¿¡ ¾×¼¼½ºÇϱâÀ§ÇÑ PERL ¸ðµâÀÔ´Ï´Ù. ...

156

´Ù¿î·Îµå