List :: RewriteElements.

¸ñ·Ï :: REWRITEElements´Â ù ¹ø° ¸ñ·ÏÀÇ ¿ä¼Ò¸¦ ´Ù½Ã ÀÛ¼ºÇÏ¿© »õ ¸ñ·ÏÀ» ¸¸µé ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

List :: RewriteElements. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • James E Keenan
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~particle/parrot-0.6.1/lib/Parrot/Pmc2c/Pmc2cMain.pm

List :: RewriteElements. ű×


List :: RewriteElements. ¼³¸í

list :: RewriteElements´Â ù ¹ø° ¸ñ·ÏÀÇ ¿ä¼Ò¸¦ ´Ù½Ã ÀÛ¼ºÇÏ¿© »õ ¸ñ·ÏÀ» ¸¸µé ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. list :: RewriteElements´Â ù ¹ø° list.synopsis »ç¿ë ¸ñ·Ï :: RewriteElements; ConstructorSimplest case : Array¿¡¼­ STDoutÀ¸·Î Ãâ·ÂÀ» ÀÔ·ÂÇÕ´Ï´Ù. $ lre = list :: rewriteElements-> new ({list => @source, body_rule => sub {my $ record = shift; $ record = shift; $ record. = q {Ãß°¡ Çʵå};},}); ÆÄÀÏ¿¡¼­ Ãâ·Â stdout : $ lre = list :: RewriteElements-> new ({file => "/ path / to / source / file", body_rule => sub {my $ record = shift; $ record. = q {, Ãß°¡ Çʵå); }); ¸ñ·ÏÀÇ Ã¹ ¹ø° ¿ä¼Ò¿¡ ´ëÇØ ´Ù¸¥ ±ÔÄ¢À» Á¦°øÇÕ´Ï´Ù. $ lre = list :: rewriteElements-> »õ ({file => / path / to / source / file ", header_rule => sub {my $ record = shift; $ record. = q {, Ãß°¡ Çì´õ};}, body_rule => sub {my $ record = shift; $ record. = q {, Ãß°¡ Çʵå};},}); ÆÄÀÏ¿¡¼­ Ãâ·Â ÆÄÀÏ : $ lre = list :: RewriteElements-> »õ ({file => "/ path / to / source / file", body_rule => sub {my $ record = shift; $ record. = q {Ãß°¡ Çʵå}); , output_file => "/ path / to / outpt / file",}); Ãâ·Â ÆÄÀÏÀ» À̸§À» ÁöÁ¤ÇÏ·Á¸é, $ lre = list :: RewriteElements-> »õ ({file => / path / to to / source / file ", body_rule => sub {my $ record = shift; $ ·¹ÄÚµå. = Q {Ãß°¡ ÀÌÅ»¸®Áî Çʵå}; }, output_suffix => '.out',}); ¸Ó¸®±Û ¶Ç´Â °³º° ·¹ÄÚµåÀÇ Ãâ·ÂÀ» ¾ïÁ¦ÇϱâÀ§ÇÑ ±âÁØÀ» Á¦°øÇÕ´Ï´Ù. $ lre = list :: RewriteElements-> new ({file => "/ path / to / source / file", header_suppress => sub {my $ record = shift; $ Record = ~ / $ somepattern /;} body_suppress => sub {my $ record = shift; $ Record NE 'somestring';}, body_rule => sub {my $ record = shift; $ record. = q {Ãß°¡ Çʵå},}; Ãâ·Â »ý¼º $ lre-> generate_output ();º¸°í Ãâ·Â Á¤º¸ $ path_to_output_file = $ lre-> get_output_path (); $ output_file_basename = $ lre-> get_output_baseName (); $ output_row_count = $ lre-> get_total_rows (); $ output_record_count = $ lre-> get_total_records (); $ records_changed = $ lre-> get_records_changed (); $ records_unchanged = $ lre-> get_records_unchanged (); $ records_deleted = $ lre-> get_records_deleted (); $ header_status = $ lre-> get_header_status (); ´Ù¸¥ »ç¶÷ÀÇ Ç÷§ µ¥ÀÌÅÍ ÆÄÀÏÀ»¹ÞÀ» ¼öÀÖ´Â ¸¹Àº »óȲ¿¡¼­ ÀϹÝÀûÀÌ¸ç µé¾î¿À´Â ÆÄÀÏÀÇ °¢ ÇàÀ̳ª ·¹Äڵ尡 (a) ÇؾßÇÏ´Â »õ ÆÄÀÏÀ» »ý¼ºÇؾßÇÕ´Ï´Ù. »õ ÆÄÀÏ¿¡ ÀμâÇϱâ Àü¿¡ ÀϺΠ±ÔÄ¢¿¡ µû¶ó º¯Çü µÉ ¼ö ÀÖ½À´Ï´Ù. ¶Ç´Â (b) ƯÁ¤ ±âÁØÀ» ÃæÁ·½ÃÅ°´Â °æ¿ì, all.list :: RewriteElements¿¡¼­ »õ ÆÄÀÏ·Î Ãâ·ÂµÇÁö ¾ÊÀ¸¸é ±×·¯ÇÑ ±ÔÄ¢ ¹× ±âÁØÀ» ÀÛ¼ºÇÏ°í º¯È¯ µÈ µ¥ÀÌÅÍ ·¹ÄÚµå ÆÄÀÏÀ» »ý¼ºÇÏ°í º¯È¯¿¡ ´ëÇÑ ±âº» Åë°è¸¦ µÇµ¹¸± ¼ö ÀÖ½À´Ï´Ù. list :: RewriteElements´Â µé¾î¿À´Â ÆÄÀÏÀÇ ·¹ÄÚµå ¼ö°¡ Å©°í Àüü ¸ñ·ÏÀ» ¸Þ¸ð¸®¿¡ ÀúÀåÇÏÁö ¾ÊÀ» ¶§ À¯¿ëÇÕ´Ï´Ù. ¸¶Âù°¡Áö·Î »õ·Î »ý¼º µÈ ·¹ÄÚµå´Â ¸Þ¸ð¸®¿¡ À¯ÁöµÇÁö¸¸ STDOUT ¶Ç´Â FILE.ONÀ¸·Î ÀμâµË´Ï´Ù. ´Ù¸¥ ÇÑÆíÀ¸·Î´Â ÀÌ¹Ì ¸Þ¸ð¸®¿¡ ·¹ÄÚµå ¹è¿­ÀÌ À̹ÌÀÖ´Â °æ¿ì ¸ñ·Ï :: REWRITEElements¸¦ »ç¿ëÇÏ¿© ±ÔÄ¢À» Àû¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹è¿­ÀÇ °¢ ¿ä¼Ò¿¡ ´ëÇÑ ±âÁØÀ» ÁöÁ¤ÇÑ ´ÙÀ½ º¯È¯ µÈ ·¹Äڵ带 ÀμâÇÕ´Ï´Ù (´Ù½Ã Ãâ·ÂÀ» ¸Þ¸ð¸®¿¡ ÀúÀåÇÏÁö ¾Ê°í). ¿ä±¸ »çÇ× : ¡¤ Perl.


List :: RewriteElements. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

PDL :: º´·Ä :: MPI.

PDL :: º´·Ä :: MPI Perl ¸ðµâÀº PDL ¿ÀºêÁ§Æ®¸¦ MPI ¶óÀ̺귯¸®¸¦ »ç¿ëÇÏ¿© º´·Ä ½Ã½ºÅÛ¿¡¼­ À̵¿ÇÒ ¼ö ÀÖµµ·Ï ·çƾÀ» Æ÷ÇÔÇÕ´Ï´Ù. ...

177

´Ù¿î·Îµå