Advertisement
cd62131

First Column Modified

Dec 15th, 2013
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.29 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use utf8;
  5. use open ':utf8';
  6. open my $in, 'data.csv' or die;
  7. open my $out, '>', 'data.mem' or die;
  8. my @a;
  9. while (<$in>) {
  10.   chomp;
  11.   my @b = split ',';
  12.   push @a, shift @b;
  13. }
  14. map { chop; print $out '0' . $_ , "\n" } @a;
  15. close $out;
  16. close $in;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement