© J.J. Merelo 2020
J. MereloRaku Recipeshttps://doi.org/10.1007/978-1-4842-6258-0_2

2. Input and Output

J. J. Merelo1 
(1)
Granada, Granada, Spain
 

Most programs need to interact with the filesystem and the network to obtain data and to produce a result. Input/output routines and classes, or I/O for short, group that functionality. In this chapter we include several recipes that will help you work with files of different kinds in different ways.

Recipe 2-1. Read Files Handled as Arguments

Problem

You need to process a series of files, but you don’t know in advance which files you are going to work with, so it’s better if the script works with the files you provide as arguments.

Solution

The dynamic variable $*ARGFILES is an alias to a pseudo-file that includes ...

Get Raku Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.