ÅؽºÆ® :: CSV_PP :: ITerator.

CSV ÆÄÀÏ¿¡ fetchRow_hashref () Á¦°ø
Áö±Ý ´Ù¿î·Îµå

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

±¤°í

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

ÅؽºÆ® :: CSV_PP :: ITerator. ű×


ÅؽºÆ® :: CSV_PP :: ITerator. ¼³¸í

CSV ÆÄÀÏ¿¡ fetchrow_hashref ()¸¦ Á¦°øÇϽʽÿÀ text :: csv_pp :: iterator´Â csv files.synopsis¿¡ fetchrow_hashref ()¸¦ Á¦°øÇÏ´Â perl ¸ðµâÀÔ´Ï´Ù .Synopsis text :: csv_pp :: iterator; MY ($ parser) = text :: csv_pp :: iterator -> new ({column_names => , file_name => no.heading.in.file.csv ',}); ³» ($ hashref); whilef ($ hashref = $ parser -> fetchrow_hashref ()) {ÀÎ¼â ¸Ê {$ _ => $$ hashref {$ _}. "} Á¤·Ä Å° % $ hashref; Àμâ " ";} text :: csv_pp :: iterator´Â ¼ø¼öÇÑ perl moduleÀÔ´Ï´Ù. ÅؽºÆ® :: csv_pp ÁÖÀ§ÀÇ Æí¸®ÇÑ ·¡ÆÛÀÔ´Ï´Ù. °ü½É ÁöÁ¡ : o text :: csv_pp :: iterator, Iterator :: io¸¦ »ç¿ëÇÏ¿© ÆÄÀÏÀ» ÀнÀ´Ï´Ù .: io . °æ°í : Iterator :: Io V 0.02¿¡´Â 3 °³ÀÇ ¹ö±×°¡ ÀÖ½À´Ï´Ù. () È£ÃâÇÏÁö ¾Ê´Â °æ¿ì http://rt.cpan.org o ¸ðµç ÅؽºÆ® :: csv_ppÀÇ new ()¸¦ ÅëÇØÀ̸¦º¸°íÇß½À´Ï´Ù. ¸Å°³ º¯¼ö´Â text :: csv_pp :: iterator ÇÏÀ§ Ŭ·¡½º text :: csv_pp o ¸ðµç µ¥ÀÌÅÍ°¡ dbiÀÇ fetchrow_hashref ()¿Í ¸¶Âù°¡Áö·Î ¸ðµç µ¥ÀÌÅÍ°¡ hashref·Î ¹ÝȯµË´Ï´Ù. ÅؽºÆ® :: csv_pp :: iteratorÀÇ À¯ÀÏÇÑ ¸Þ¼Òµå, fetchrow_hashref () o ¸ðµâÀº ÆÄÀÏÀÇ Ã¹ ¹ø° ·¹Äڵ忡¼­ ¿­ ¸Ó¸®±ÛÀ» Àаųª ... o ÆÄÀÏ¿¡ Á¸ÀçÇÏÁö ¾Ê´Â ÆÄÀÏ¿¡ ¿À·ù°¡¾ø´Â °æ¿ì yexibleÀ̾ø´Â ÆÄÀÏ¿¡ ¿À·ù°¡ ¾øÀ¸¸é ¿­ ¸Ó¸®±ÛÀ» jegs ()·Î Àü´ÞÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ±ò²ûÇÑ ±¸Á¶¸¦ Çã¿ëÇÏ·Á¸é ±¦ÂúÀº ¿À·ù ¸Þ½ÃÁö°¡ ±¦ÂúÀ» °ÍÀÔ´Ï´Ù. while ($ hashref = $ parser -> fetchrow_hashref ()) {...} o Á¾¼Ó¼º : - Iterator :: IO - ÅؽºÆ® :: CSV_ PP o ¿¹Á¦ ÄÚµå : T / Test.t : - eval {...}¿¡¼­ fetchrow_hashref¸¦ È£ÃâÇÏ°í ¿¹¿Ü ¿ä±¸ »çÇ×À» catch-{...}¿¡¼­ fetchrow_hashref¸¦ È£ÃâÇÏ´Â ¹æ¹ý : ¡¤ Perl.


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