extract size from ll_db if supported
[webpac2] / lib / WebPAC / Input.pm
index ecc6773..0eb056f 100644 (file)
@@ -473,7 +473,8 @@ because it takes into account C<offset> and C<limit>.
 
 sub size {
        my $self = shift;
-       return $self->{size};
+       $self->{ll_db}->size if $self->{ll_db}->can('size');
+       return $self->{size}; # FIXME this is buggy if open is called multiple times!
 }
 
 =head2 seek