Message-ID: <4R2GgR$OPa@newsmth.net>
Subject: ����"+<"模式���募�
Date: Mon, 06 Nov 2006 08:53:15 +0000
From: Unknown <anon@nohost.local>
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.perl.mbox.zip!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.perl
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Perl/U/M.1162803195.d0
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:29981

一���虻サ某���write.pl
open(FILE, "+<test.txt");
$line = <FILE>;
$pos  = tell(FILE);
print FILE "XYZ";

test.txt�募���原����
12345
abcde

执��perl write.pl之��test.txt���
12345
abcde
12345
XYZ

���������么��������慕�����write cursor��read cursor��一�碌幕����揖��媒��应����
12345
XYZde

��������慕����么�����筒�通


--
��� ���� 学习
http://morganchengmo.spaces.live.com

�� ��源:��水木���� http://newsmth.net��[FROM: 207.46.89.*]