open my $fh, '<', $file or die "$file : $!"; my $p = int( 1 + rand -s $fh ); seek $fh, $p - $GLEN, 0; chomp( my $pick = <$fh> ); chomp( $pick = <$fh> ) while tell( $fh ) < $p;