write
write filehandle
- Writes a formatted record (possibly multiline) to the specified filehandle, using the format associated with that filehandle - see in . By default, the format for a filehandle is the one having the same name as the filehandle.
If filehandle is unspecified, output goes to the current default output filehandle, which starts out as STDOUT but may be changed by the
selectoperator. If the filehandle is an expression, then the expression is evaluated to determine the actual filehandle at runtime.Note that
writeis not the opposite ofread. Useprintfor simple string output. If you want to bypass standard I/O, seesyswrite.