3 # Make sure we can fetch a record in the middle of the file
4 # before we've ever looked at any records before it
6 # (tests _fill_offsets_to() )
10 $: = Tie::File::_default_recsep();
11 my $data = "rec0$:rec1$:rec2$:";
17 print "ok $N\n"; $N++;
19 open F, "> $file" or die $!;
25 my $o = tie @a, 'Tie::File', $file;
26 print $o ? "ok $N\n" : "not ok $N\n";
35 print $a[$_] eq "rec$_$:" ? "ok $N\n" : "not ok $N # rec=$a[$_] ?\n";