Re: a problem about getpos of FileHandle

2000-10-20 Thread Steve Hollingsworth
This is an easy mistake to make. If you read the documentation getpos returns an "opaque" value. This means, briefly, that it is implementation-dependent what's in it. But it is guaranteed to return you to that location if you use it as an argument to setpos. Because I happen to know that, in

a problem about getpos of FileHandle

2000-10-20 Thread Íõ¾ü
hi, i am using modle FileHandle; i write the code below in NT4: __ use FileHandle; my $fh = new FileHandle "c:\\winzip.log","r"; my $pos = 0; while(<$fh>) { print; print "-"; $pos = $fh ->g