µ¥ÀÌÅÍ :: CTABLE.Data :: CTableÀº Ç¥ Çü½Ä µ¥ÀÌÅ͸¦ Àаí, ¾²±â, Á¶ÀÛÇÏ´Â µ¥ µµ¿òÀ̵Ǵ Perl ¸ðµâÀÔ´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
µ¥ÀÌÅÍ :: CTABLE. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Chris Thorman
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~chthorman/Module-Reload-Sel-1.02/Selective.pm
µ¥ÀÌÅÍ :: CTABLE. ű×
µ¥ÀÌÅÍ :: CTABLE. ¼³¸í
Data :: CTableÀº Ç¥ Çü½Ä µ¥ÀÌÅ͸¦ ÀÐ°í ¾²°í Á¶ÀÛÇÏ´Â µ¥ µµ¿òÀ̵Ǵ Perl ¸ðµâÀÔ´Ï´Ù. Data :: CTableÀº Tabular Data.synopsis ## Àб⸦ Àаí, ¾²±â, Á¶ÀÛÇÏ´Â µ¥ µµ¿òÀ̵Ǵ Perl ¸ðµâÀÔ´Ï´Ù. ´Ù¾çÇÑ Ç¥ Çü½ÄÀ¸·Î ÀϺΠµ¥ÀÌÅÍ ÆÄÀÏÀ» ÀнÀ´Ï´Ù. µ¥ÀÌÅÍ :: CTableÀ» »ç¿ëÇϽʽÿÀ. ³» $ People = data :: ctable-> new ( "people.merge.mac.txt"); ³» $ stats = data :: ctable-> new ( "stats.tabs.unix.txt"); ## Çʵ忡 ÀÒ¾î¹ö¸° °ø¹éÀ» û¼ÒÇÕ´Ï´Ù $ people-> clean_ws (); $ stats -> clean_ws (); ## ¿À» °Ë»öÇϽʽÿÀ My $ First = $ People-> col ( 'firstname'); My $ last = $ people-> col ( 'lastname'); ## ´Ù¸¥ µÎ ´Ù¸¥ °Í¿¡ µû¶ó »õ·Î¿î ¿ °è»ê My $ full = $ last -> } @ {$ people-> all ()]]; ## Å×À̺í $ People-> Col (FullName => $ Full)¿¡ »õ ¿À» Ãß°¡ÇϽʽÿÀ. ## »õ Ä÷³ $ People-> Col ( 'Key')À» °è»êÇÏ´Â ¶Ç ´Ù¸¥ ¹æ¹ý; $ People-> Calc (sub {no strict 'vars'; $ key = "$ last, $ firt";}); ## "left join"·¹ÄÚµå ÀÏÄ¡ÇÏ´Â Åë°è : »ç¶÷¿¡°Ô Àι° : ÁÖ¿ä $ stats-> °¡ÀÔ ($ people, personid => 'Å°'); ## ƯÁ¤ ·¹ÄÚµå ã±â $ statts-> select_all (); $ stats-> select (Department => sub {/ sale / i}); ## Sales Depts $ stats-> omit (Department => sub {/ resale / i}); ## $ stats-> ¼±Åà (usageIndex => sub {$ _> 20.0}); ## ³ôÀº »ç¿ë·® ## ¹ß°ß µÈ ·¹ÄÚµå Á¤·Ä $ stats-> sortspec ( 'deptnum', {sortType => 'Á¤¼ö'}); $ stats-> sortspec ( 'UsageIndex', {sortType => 'number'}); $ stats-> Á¤·Ä (); ## $ Report = $ stats-> snapshot ()À» ¼ø¼´ë·Î ¹ß°ß / Á¤·Ä µÈ µ¥ÀÌÅÍ·Î ¸¸ »ç¿ëÇÏ¿© Å×ÀÌºí º¹»ç¸¦ÇϽʽÿÀ. ## Ãâ·Â ÆÄÀÏ ¾²±â $ Report-> write (_filename => "rept.txt", _lineending => "mac"); ## ÃÖÁ¾ ÁøÇà ¸Þ½ÃÁö¸¦ ÀμâÇÕ´Ï´Ù. $ stats-> ÁøÇà ( "¿Ï·á!"); ## ¼ö½Ê °³ÀÇ ´õ ¸¹Àº ¹æ¹ý ¹× ¸Å°³ º¯¼ö¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù ... overviewData :: CTableÀº Àбâ, ¾²±â, Á¶ÀÛ, û¼Ò ¹× Ç¥ Çü½Ä µ¥ÀÌÅ͸¦ º¯È¯ÇÏ´Â Æ÷°ýÀû ÀÎ À¯Æ¿¸®Æ¼ÀÔ´Ï´Ù. ¹èÆ÷ÆÇ¿¡´Â ¸î °¡Áö ¿¹½ÃÀûÀÎ ¼ºê Ŭ·¡½º ¹× À¯Æ¿¸®Æ¼ ½ºÅ©¸³Æ®°¡ Æ÷ÇԵ˴ϴÙ. Çʵå À̸§°ú Çؽà °ªÀº µ¥ÀÌÅÍ ¿À» º¸°üÇÕ´Ï´Ù (¹è¿ ÂüÁ¶) .Tables´Â "¼±ÅÃ"- ¼±ÅÃÇÑ / Á¤·Ä µÈ ·¹ÄÚµå ¹øÈ£ ¸ñ·Ï°ú "ÇÊµå ¸ñ·Ï"¸ñ·ÏÀ» ÀúÀåÇÕ´Ï´Ù. Àüü ¶Ç´Â ÀϺΠÇʵåÀÇ Á¤·Ä µÈ ¸ñ·Ï ÀÛµ¿ÇÏ·Á¸é. select () ¹× sort () ¸Þ¼µå ¼±Åà ¸ñ·ÏÀ» Á¶ÀÛÇÕ´Ï´Ù. ³ªÁß¿¡ ¼±ÅÃÀûÀ¸·Î Å×À̺íÀ» ¸Þ¸ð¸® ³ª µð½ºÅ©¿¡¼ ´Ù½Ã ÀÛ¼ºÇÏ¿© ¼±Åà ¸ñ·ÏÀ̳ª ÇÊµå ¸ñ·ÏÀÇ º¯°æ »çÇ×À» ¹Ý¿µÇÏ¿© º´ÇÕ, CSV, ÅÇ ±¸ºÐ µÈ ¹× º¯ÇüÀ» Æ÷ÇÔÇÏ¿© Å×À̺í Çü½Ä ÅؽºÆ® ÆÄÀÏ Çü½ÄÀ» ¾¹´Ï´Ù. ·±Å¸ÀÓ Ç÷§Æû¿¡ °ü°è¾øÀÌ UNIX, Mac ¹× / ¶Ç´Â DOS ¶óÀÎ ¿£µù ¹× ÅÇ ¶Ç´Â ½°Ç¥ ÇÊµå ±¸ºÐ ±âÈ£¸¦ Åõ¸íÇÏ°Ô °¨Áö, ÀÐ±â ¹× º¸Á¸ÇÕ´Ï´Ù. µ¥ÀÌÅÍ ÆÄÀÏÀ» Àд µ¥ Ãß°¡Çϸé CTableÀº ¼öÁý, ÀúÀå ¹× ¸Þ¸ð¸®¿¡¼ Ç¥ µ¥ÀÌÅ͸¦ ÀÛµ¿½ÃÅ°°í ´Ù¸¥ ÇÁ·Î±×·¥À̳ª ´ëÈ Çü »ý»ê¼º ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼ ÀÐÀ» ÅؽºÆ® ÆÄÀÏ·Î µ¥ÀÌÅ͸¦ ³»º¸³»·Á¸é ¸Å¿ì ºü¸¥ µ¥ÀÌÅÍ ·ÎµùÀ» ´Þ¼ºÇÏ·Á¸é ÀúÀå °¡´ÉÇÑ ¸ðµâÀ» »ç¿ëÇÏ¿© µ¥ÀÌÅÍ ÆÄÀÏ ³»¿ëÀ» ij½ÃÇÕ´Ï´Ù. ÀÌ°ÍÀº CGI ȯ°æÀ̳ª ¸Å¿ì Å« µ¥ÀÌÅÍ ÆÄÀÏ¿¡¼ ÀÛµ¿ ÇÒ ¶§ µµ¿òÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù. CTableÀº Æò±Õ Áß°£ ¹üÀ§ÀÇ ÄÄÇ»ÅÍ¿¡¼ ¾à 10 ÃÊ ¸¸¿¡ ¾à 120 ¸Þ°¡ ¹ÙÀÌÆ®ÀÇ Àüü ij½Ã Å×À̺í Àüü¸¦ ¸Þ¸ð¸®·Î ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. °£´ÜÇÑ µ¥ÀÌÅÍ ±â¹Ý µ¥ÀÌÅÍ ¼¼Æ®¸¦ ÀúÀåÇÏ°í ½Å¼ÓÇÏ°Ô °Ë»ö ÇؾßÇÏ´Â °£´ÜÇÑ µ¥ÀÌÅÍ ±â¹Ý ÀÀ¿ë ÇÁ·Î±×·¥À» ÀÐÀ¸½Ê½Ã¿À. CTableÀº DBM ÆÄÀÏ¿¡ ´ëÇÑ ½Å·ÚÇÒ ¼öÀÖ´Â ´ë¾ÈÀ» Á¦°øÇÕ´Ï´Ù. ¶Ç´Â SQL.for µ¥ÀÌÅÍ À§»ý ÀÀ¿ë ÇÁ·Î±×·¥ ÀÎ CTableÀº À¯Æ¿¸®Æ¼ ½ºÅ©¸³Æ® ¶Ç´Â ÄÄÆÄÀÏ·¯¸¦ ÀÛ¼ºÇϱâÀ§ÇÑ ±â¹ÝÀ» Çü¼ºÇÏ¿© FileMaker, Excel, Access, Personal Organizer µî°ú °°Àº ¿ÜºÎ ¼Ò½º¿¡¼ ÄÄÆÄÀÏ µÈ ¶Ç´Â À¯È¿¼ºÀÌ °ËÁõ µÈ Çü½ÄÀ¸·Î ¶Ç´Â °ÔÀÌÆ®¿þÀÌ·Î µ¥ÀÌÅ͸¦ Àü¼ÛÇÒ ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅ͸¦ SQL µ¥ÀÌÅͺ£À̽º ¶Ç´Â ´Ù¸¥ ¸ñÀûÁö¿¡·ÎµåÇÏ´Â °Í. Perl¿¡¼ ªÀº ¹Ýº¹ °¡´ÉÇÑ ½ºÅ©¸³Æ®¸¦ ½±°Ô ÀÛ¼ºÇÒ ¼ö ÀÖµµ·Ï ½±°Ôº¸°í, ¿À·ù °Ë»ç, ºÐ¼® ¶Ç´Â ´ú À¯¿¬ÇÑ ÀÀ¿ë ÇÁ·Î±×·¥ ȯ°æ¿¡¼ º¹Á¦Çϱ⠾î·Á¿î À¯È¿¼º °Ë»ç¸¦ ½±°Ô ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅÍ Ç¥ÇöÀº °£´ÜÇÏ°í ¿¸®¹Ç·Î µ¥ÀÌÅÍ¿¡ Á÷Á¢ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. °´Ã¼°¡ ±âºÐÀÌ µé¸é - ¶Ç´Â Á¢±ÙÀÚ¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅÍ ¶Ç´Â »çº» ¸¸ Æ÷ÇÔÇÏ´Â "±ú²ýÇÑ"±¸Á¶¸¦ ¿äûÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶Ç´Â ÀÚ½ÅÀÇ ¿À» ¸Þ¸ð¸®¿¡ ºôµå ÇÒ ¼ö ÀÖ½À´Ï´Ù. Áغñ°¡µÇ¸é ¸Å¿ì À¯¿¬ÇÑ »õ () ¸Þ¼µå¸¦ »ç¿ëÇÏ¿© Å×ÀÌºí °´Ã¼·Î Àüȯ ÇÒ ¼ö ÀÖ½À´Ï´Ù. °íµµ·Î ÀÎ½Ä µÈ ÀÎÅÍÆäÀ̽º ¹× ±¸ÇöÀ» ÅëÇØ ¼¼ºÐÈ µÈ ¼ºê Ŭ·¡½º¸¦ Çã¿ëÇϹǷΠÀ¯¿ëÇÑ °¡º¿òÀ» ½±°Ô ¸¸µé ¼ö ÀÖ½À´Ï´Ù. ¼ºê Ŭ·¡½º. ¿©·¯ ÇÏÀ§ Ŭ·¡½º°¡ ¹èÆ÷ÆÇ¿¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. ÃÖ´ë ±âº»°ª ¹× ¸Å°³ º¯¼ö´Â ÀνºÅϽº ¼öÁØ (³Ê¹« ÀÚÁÖ ÇÏÀ§ Ŭ·¡½º°¡ ÇÊ¿äÇÏÁö ¾ÊÀ½)¿¡¼ °ãÃÄ ¾²ÀÌ´Â °æ¿ì, ´ëºÎºÐÀÇ ÁÖ¿ä ¸Þ¼µå È£Ãâ¿¡ ´ëÇÑ ¼±ÅÃÀû ¸í¸í µÈ ¸Å°³ º¯¼ö Àμö¸¦ ÅëÇØ ´õ ÀÌ»ó °ãÃÄÁ³½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
µ¥ÀÌÅÍ :: CTABLE. °ü·Ã ¼ÒÇÁÆ®¿þ¾î
Apache2 :: ASP :: Server.
Apache2 :: ASP :: Server´Â apache2 :: ASP ÇÁ·Î±×·¡¹ÖÀ»À§ÇÑ À¯Æ¿¸®Æ¼ °³Ã¼ÀÔ´Ï´Ù. ...
278
MARC :: DOC :: Æ©Å丮¾ó
MARC :: DOC :: TutorialÀº Marc :: RecordÀÇ »õ·Î¿î »ç¿ëÀÚ¸¦À§ÇÑ ¹®¼ Àü¿ë ¸ðµâÀÔ´Ï´Ù. ...
233