ÅؽºÆ® :: CSV :: BulkData.

´ë·® µ¥ÀÌÅÍ°¡ÀÖ´Â CSV ÆÄÀÏ »ý¼º
Áö±Ý ´Ù¿î·Îµå

ÅؽºÆ® :: CSV :: BulkData. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °Ô½ÃÀÚ À̸§:
  • Kazuhiro Sera
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~sera/

ÅؽºÆ® :: CSV :: BulkData. ű×


ÅؽºÆ® :: CSV :: BulkData. ¼³¸í

´ë·® µ¥ÀÌÅÍ·Î CSV ÆÄÀÏÀ» »ý¼ºÇϽʽÿÀ ÅؽºÆ® :: CSV :: BulkData´Â ´ë·® µ¥ÀÌÅÍ°¡ÀÖ´Â CSV ÆÄÀÏÀ» »ý¼ºÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. Ãß°¡ (+), »©±â (-), °ö¼À (*), Division (/) ¹× ÀÜ·ù ¹° (%)À» »ç¿ëÇÏ¿© ÁõºÐ °ªÀ» ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ÀÆÛ·¹ÀÌÅÍÀÇ ´ë¸®¿øÀº '*', '/', '%', '+', '-'ÀÔ´Ï´Ù. ¼Ò¼öÁ¡ÀÇ ¿À¸¥ÂÊÀÌ À߸³´Ï´Ù. ¿î¿µÀÚ°¡ ¾øÀ½À» ÀǹÌÇÕ´Ï´Ù. °íÁ¤ °ª (Á¤¼ö ¶Ç´Â ¹®ÀÚ¿­)À» ÀǹÌÇÕ´Ï´Ù. ½Ä ³ëÇÁ »ç¿ë ÅؽºÆ® »ç¿ë :: CSV :: Bulkdata; MY $ OUTPUT_FILE_1 = "/your/dir/example.dat"; MY $ FORMAT_1 = "0907000 D, JPN, 160- D, TYPE000 D, 0120444 D, 2008041810 D00 \ N"; My $ Pattern_1 = ; ³» $ gen = text :: csv :: bulkdata-> new ($ output_file_1, $ format); MY $ PATTERN_1 = ; $ gen-> ÃʱâÈ­ -> set_pattern ($ pattern_1) -> set_start (59) -> set_end (62) -> make; MY $ OUTPUT_FILE_2 = "/your/dir/yetanotherfile.dat"; ³» $ format_2 = "0907000 d, jpn, 160- d, type000 d, 0120444 d, 20080418 d0000,20080419 d0000 \ n"; MY $ PATTERN_2 = ; $ gen-> set_output_file ($ output_file_2) -> set_format ($ format_2) -> set_pattern ($ pattern_2) -> set_start (239) -> set_end (241) -> make;ÀÌ »ùÇÃÀº ´ÙÀ½ csv file./your/dirÀ» »ý¼ºÇÕ´Ï´Ù. /example.dat 09,070,000,059, JPN, 160-0236, type0000057,01204440119,20080418105800,2008041811190009,070,000,060, JPN, 160-0240, type0000058,01204440121,20080418105900,2008041811200009,070,000,061, JPN, 160-0244, type0000059,01204440123,20080418100000,2008041811210009,070,000,062 , JPN, 160-0248, type0000060,01204440125,20080418100100,20080418112200 / ´ç½ÅÀÇ / µð·ºÅ丮 / yetanotherfile.dat 09070000239, JPN, 160-0023, type0000358,01204440001,20080418220000,2008041923000009070000240, JPN, 160-0024, type0000360,01204440000,20080418230000 , 2008041923000009070000241, JPN, 160-0024, Type0000361,01204440001,20080418000000,20080419230000 ¿ä±¸ »çÇ× : ¡¤ Perl.


ÅؽºÆ® :: CSV :: BulkData. °ü·Ã ¼ÒÇÁÆ®¿þ¾î