Search notes:

Perl module Text::CSV

Text::CSV can be used to read a CSV file.
use warnings;
use strict;

use Text::CSV;

my $csv = Text::CSV->new( {binary   => 1, sep_char => ';'} ) or die Text::CSV -> error_diag();

open (my $file_handle, '<', 'data.csv') or die "could not open data.csv";

while (my $record = $csv->getline($file_handle)) {

  print "\n---------\n";
  print join "\n", @$record;

}

close $file_handle;
Github repository PerlModules, path: /Text/CSV/script.pl

See also

DBD::CSV, Parse::CSV
Perl modules

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1744798859, '18.189.1.87', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Text/CSV/index(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78