projects
/
webpac2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
extract size from ll_db if supported
[webpac2]
/
lib
/
WebPAC
/
Input.pm
diff --git
a/lib/WebPAC/Input.pm
b/lib/WebPAC/Input.pm
index
ecc6773
..
0eb056f
100644
(file)
--- a/
lib/WebPAC/Input.pm
+++ b/
lib/WebPAC/Input.pm
@@
-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