Advertisement
oylenshpeegul

vijay sarathi

Jun 20th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.34 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. # http://theunixshell.blogspot.com/2013/06/removal-of-unnecessary-white-spaces.html
  4.  
  5. use strict;
  6. use warnings;
  7. use Text::CSV;
  8.  
  9. my $csv = Text::CSV->new({
  10.     allow_whitespace => 1,
  11.     binary => 1,
  12.     eol => $/,
  13. }) or die Text::CSV->error_diag;
  14.  
  15. $csv->print(*STDOUT, $_) for @{$csv->getline_all(*STDIN)};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement