Data formats and the network

This part connects the program to data other tools wrote: CSV and TSV files, JSON, an HTTP API, a TCP socket, and a SQL database through DBI.

8.1 CSV and TSV processing quoted fields with Text::CSV, headers, rows summed safely, and TSV through split Open 8.2 JSON with JSON::PP encode and decode with the core module, a config file, and booleans, UTF-8 and parse errors Open 8.3 HTTP clients with HTTP::Tiny GET and POST, a JSON body, the response checked, timeouts, redirects and HTTPS Open 8.4 Sockets and IO::Socket a TCP client and server, a read timeout with IO::Select, and a message frame for binary data Open 8.5 Databases with DBI connect, run a query with placeholders, insert a row, read the result, and wrap it in a transaction Open

Lessons