一���虻サ某���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.*]