To write to an IO::Handle, use the print method.