Guest User

Untitled

a guest
Jun 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5. use Text::CSV;
  6.  
  7. #object for csv
  8. my $csv = Text::CSV->new( {binary=>1, eol=>"\n", sep_char=>';'});
  9.  
  10. #open file
  11. open my $fh, '<', 'brown.csv' or die $!;
  12.  
  13. #loop
  14. while(<$fh>) {
  15. $csv->parse( $_ );
  16.  
  17. my @columns = $csv->fields();
  18. print $columns[1], "\n";
  19. }
Add Comment
Please, Sign In to add comment