...Perl文件及目录操作 大多数程序都不是孤立的,它们与它们的环境相互作用。很多的程序也需要通过文件操作实现数据的存贮和交换。文件句柄(filehandle)是程序中为程序和外部世界提供I/O连接的名称。建议全部使用大写字母以示与变量等的区别。
基于102个网页-相关网页
... read 函数用于从缓冲区的文件句柄读取信息。 FILEHANDLE:文件句柄,用于存放一个文件唯一标识符。 SCALAR:开始读取位置。 ...
基于4个网页-相关网页
Opening the magical filehandle in Perl, opens every argument passed to Perl as a filename and reads in the contents of each file line by line.
在Perl中打开神奇的文件句柄(filehandle),这会将传送给Perl的每个参数作为文件名打开并逐行读取每个文件的内容。
The chapter on tied variables covers the essentials of this useful technique, and is updated with methods for tying a filehandle, and a list of Tie modules on CPAN.
绑定变量 (tied variables) 这章涵盖了这一项有用技术中的所有要点,并更新了绑定文件句柄的方法,以及 CPAN 库中的 Tiemodules 模块列表。
应用推荐