The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TL::CSV - parse and generation of CSV (ja)

NAME (ja)

TL::CSV::JA - CSV ��勉����若�鴻�◐�����

SYNOPSIS

  # �����若�
  my $csv = $TL->getCsv;
  my $parser = $csv->parseCsv($CGI->getFile('upload'));
  
  while (my $row = $parser->next) {
      # $row: ['��˨�í��1', '��˨�í��2', ...]
  }
  

  # ������
  $TL->print($csv->makeCsv([ qw(aaa bbb ccc) ]), "\n");
  $TL->print($csv->makeCsv([ qw(aaa bbb ccc) ]), "\n");

DESCRIPTION

CSV ��勉����若�鴻�◐��������茵������冴�勉�壔�í�鴻�� ��˨�潟�������˨����˨�í�������壕����潟�若�������˨����˨�í��膈���� 罩c�������☎��������篋������堺�ャ�����

���絖������勉����若�鴻�勌����˨�������<�ゃ�˨����潟����˨�������勉����若�鴻���櫝�純��

METHODS

$TL->getCsv
  my $csv = $TL->getCsv;

TL::CSV ��ŝ����吾�с�壔��������緇����������

parseCsv
  my $parser = $csv->parseCsv("a,b,c,d,e");
  my $parser = $csv->parseCsv(IO::Scalar->new(\"a,b,c,d,e"));

筝����������������絖������障����壔����<�ゃ�˨����潟����˨����� �����若�泣�ŝ����吾�с�壔��������������������

菴������������ŝ����吾�с�壔�����絲障����� next ��<�純��������筝�綺☗�若�九墾��˨�� 筝�茵������勉����若�帥����������ŝ����<�㋘�潟�鴻�ц�������������� ���緇���勤�����茯㏍�����緇���� undef ���菴�������������

  while (my $row = $parser->next) {
      ...
  }

CSV �����馹���������c�⓾����若�鴻�с����ŝ����翫����壔��next ��<�純����������若����� �����˩��紊������榊�����������

makeCsv
  my $line = $csv->makeCsv([1, 2, 3]);

筝���������������������ŝ����<�㋘�潟�鴻����� CSV 1茵���������������☀�������� ��祉����ゃ�勖��絨障����壕�����絖���壚�������������ŝ�����

BUGS

�����勉�≪�吾�ャ�若�˨�� Text::CSV_XS ��˩��絖������⓾�������������������������ñ���櫝� ��с�ŝ����倶����� $TL->getCsv �����若�吟��箴�紊������榊�����������

SEE ALSO

TL
Text::CSV_XS

AUTHOR INFORMATION

    Copyright 2006 YMIRLINK Inc. All Rights Reserved.

    This framework is free software; you can redistribute it and/or modify it under the same terms as Perl itself

    �����勉����㋘�若����壔�若�壔�壔����ŝ�若�純�������⓾�с�≪�с����������ŝ����� Perl �����������í�ゃ�祉�潟�鴻�� �����у�����絽������喝����眼��茵���������������堺�ャ�障�����

    Address bug reports and comments to: tl@tripletail.jp

    HP : http://tripletail.jp/