Name

select

Synopsis

select filehandle

Description

Returns the currently selected output filehandle, and if filehandle is supplied, sets that as the current default filehandle for output. This has two effects: first, a write or a print without a filehandle argument will default to this filehandle. Second, special variables related to output will refer to this output filehandle.

Get Perl in a Nutshell 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.