Help for this page

Select Code to Download


  1. or download this
    use 5.20.0;
    use warnings;
    ...
        $row[$_] =~ tr{,}{-} for grep { $csv->is_quoted ($_) } 0..$#row;
        $csv->say ($oh, \@row);
        }
    
  2. or download this
    $ time perl test.pl
    20.120u 0.156s 0:20.48 98.9%    0+0k 13888+214656io 0pf+0w
    
  3. or download this
    use 5.20.0;
    use warnings;
    ...
        $row[1] =~ tr{,}{-};
        $csv->print ($oh, \@row);
        }
    
  4. or download this
    $ time perl test2.pl
    5.564u 0.144s 0:05.90 96.6%     0+0k 16+214656io 0pf+0w