发信人: saka.bbs@bbs.neu.edu.cn (机器猫), 信区: cnlinux
标  题: perl(33)
发信站: 白山黑水BBS (Wed Apr  2 17:46:48 1997)
转信站: Lilac!ustcnews!ustcnews!sjtunews!neubbs
出  处: conger.neu.edu.cn

--------------178E568F1644
Content-Type: text/plain; charset=us-ascii; name="write.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="write.txt"

NAME

write - print a picture record

---------------------------------------------------------------------------

SYNOPSIS

write FILEHANDLE

write EXPR

write

---------------------------------------------------------------------------

DESCRIPTION

Writes a formatted record (possibly multi-line) to the specified file,
using the format associated with that file. By default the format for a
file is the one having the same name is the filehandle, but the format for
the current output channel (see the select() function) may be set
explicitly by assigning the name of the format to the $~ variable.

Top of form processing is handled automatically: if there is insufficient
room on the current page for the formatted record, the page is advanced by
writing a form feed, a special top-of-page format is used to format the new
page header, and then the record is written. By default the top-of-page
format is the name of the filehandle with ``_TOP'' appended, but it may be
dynamically set to the format of your choice by assigning the name to the
$^ variable while the filehandle is selected. The number of lines remaining
on the current page is in variable $-, which can be set to 0 to force a new
page.

If FILEHANDLE is unspecified, output goes to the current default output
channel, which starts out as STDOUT but may be changed by the select
operator. If the FILEHANDLE is an EXPR, then the expression is evaluated
and the resulting string is used to look up the name of the FILEHANDLE at
run time. For more on formats, see the perlform manpage .

Note that write is NOT the opposite of read. Unfortunately.

--------------178E568F1644--

--
※ 来源:.白山黑水站 bbs.neu.edu.cn.[FROM: ygh@rose.dlut.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.893毫秒