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 1400+ tech skills courses.