start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: warn Chapter 5
Function Reference
Next: 5. Function Reference
 

write

write 
filehandle

Writes a formatted record (possibly multiline) to the specified filehandle , using the format associated with that filehandle - see Section 4.10 in Chapter 4 . 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 select operator. If the filehandle is an expression, then the expression is evaluated to determine the actual filehandle at runtime.

Note that write is not the opposite of read . Use print for simple string output. If you want to bypass standard I/O, see syswrite .


Previous: Reference: warn Perl in a Nutshell Next: 5. Function Reference
Reference: warn Book Index 5. Function Reference