Reading and Writing to Files

Learn how to read and write to files in Perl.

Reading from files

Given a filehandle opened for input, read from it with the readline built-in, also written as <>.

Get hands-on with 1200+ tech skills courses.