Advertisement
cd62131

Output File

Dec 8th, 2013
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.28 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use utf8;
  5. use open ':utf8';
  6. use open ':std';
  7. use feature 'say';
  8.  
  9. open my $in, 'data.txt' or die;
  10. open my $out, '>', 'outfile.txt' or die;
  11. while (<$in>) {
  12.   chomp;
  13.   say $out join ' ', map { $_ / 100 } split;
  14. }
  15. close $out;
  16. close $in;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement