Texte :: CSV :: Bulkdata

Générer un fichier CSV avec des données en vrac
Télécharger maintenant

Texte :: CSV :: Bulkdata Classement & Résumé

Publicité

  • Rating:
  • Licence:
  • Perl Artistic License
  • Nom de l'éditeur:
  • Kazuhiro Sera
  • Site Internet de l'éditeur:
  • http://search.cpan.org/~sera/

Texte :: CSV :: Bulkdata Mots clés


Texte :: CSV :: Bulkdata La description

Générer un fichier CSV avec des données en vrac Texte :: CSV :: Bulkdata est un module Perl pour générer des fichiers CSV avec des données en vrac.Vous pouvez modifier des valeurs incrémentées avec l'addition (+), la soustraction (-), la multiplication (*), la division (/) et le résidu (%). .Pecedence des opérateurs est '*', '/', '/', '%', '+', '+', '-'. Le droit du point décimal est tronqué.Begining sans opérateurs signifie une valeur fixe (entier ou une chaîne) .Synopsis utilise du texte :: CSV :: Bulkdata; ma sortie_file_file_1 = "/Your/dir/example.dat"; mon $ format_1 = "0907000 D, JPN, 160- D, type000 d, 0120444 D00 \ 008041811 D00 \ N"; My $ pattern_1 = ; mon $ Gen = Text :: CSV :: Bulkdata-> Nouveau ($ Output_File_1, $ Format); mon $ pattern_1 = ; $ GEN-> INITIALIZE -> SET_PATTERN ($ pattern_1) -> set_start (59) -> Set_end (62) -> faire; ma sortie_file_file_2 = "/Your/dir/yetanothanothanfile.dat"; mon $ format_2 = "0907000 D, JPN, 160- D, type000 D, 0120444 D, 20080418 D0000.20080419 D0000 \ N"; mon $ pattern_2 = ; $ GEN-> SET_OUTPUT_FILE ($ OUTPUT_FILE_2) -> SET_FORMAT ($ FORMAT_2) -> SET_PATTERN ($ PATTER_2) -> SET_START (239) -> SET_END (241) -> Make; Cet échantillon génère après le fichier CSV./votre/dir /example.dat 09070000059, JPN, 160-0236, type0000057,01204440119,20080418105800,2008041811190009070000060, JPN, 160-0240, type0000058,01204440121,20080418105900,2008041811200009070000061, JPN, 160-0244, type0000059,01204440123,20080418100000,2008041811210009070000062 , JPN, 160-0248, type0000060,01204440125,20080418100100,20080418112200 / votre / dir / yetanotherfile.dat 09070000239, JPN, 160-0023, type0000358,01204440001,20080418220000,2008041923000009070000240, JPN, 160-0024, type0000360,01204440000,20080418230000 , 2008041923000009070000241, JPN, 160-0024, type0000361,01204440001.20080418000000.20080419230000 Exigences: · Perl


Texte :: CSV :: Bulkdata Logiciels associés

CREDO

Paquet pour les codes de modélisation scientifique d'analyse comparative, de profilage et d'analyse ...

65

Télécharger