$ perldoc -f select
select FILEHANDLE
select Returns the currently selected filehandle. If FILEHANDLE is
supplied, sets the new current default filehandle for output. This
has two effects: first, a "write" or a "print" without a
filehandle default to this FILEHANDLE. Second, references to
variables related to output will refer to this output channel.
...