:: [DNG] OT: Perl programming question
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Fred
日付:  
To: dng
題目: [DNG] OT: Perl programming question
HI,

I am writing a Perl program to process some text. The program writes
some text to a temporary file. It is necessary to return to a specific
point in the temporary file.

seek(TMPFILE,20,0);

$currentpos = tell(TMPFILE);

print "$currentpos\n";

When the program is run the tell() command appears to be executed twice.

20
20

Why and how to stop it?

Best regards,
Fred