Code Comments
Programming Forum and web based access to our favorite programming groups.I'm having trouble using File::ReadBackwards on large files. The problem is that the line: my $read_size = $s_pos % $max_read_size || $max_read_size ; yields -1 when $s
_pos is large. I've "solved" the problem by commenting out the line: #use integer; But I'm sure that "use integer" wasn't put there just be ornery, so now I wonder what awful thing is going to happen because I commented it out. Any thoughts? Thanks, Xho -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service $9.95/Month 30GB
Post Follow-up to this message<xhoster@gmail.com> wrote in comp.lang.perl.misc: > I'm having trouble using File::ReadBackwards on large files. > > The problem is that the line: > my $read_size = $s_pos % $max_read_size || $max_read_size ; > yields -1 when $s
_pos is large. > > I've "solved" the problem by commenting out the line: > #use integer; > > > But I'm sure that "use integer" wasn't put there just be ornery, so now I > wonder what awful thing is going to happen because I commented it out. That "use integer" governs 220 lines of code. That's not a whole lot, but it would be hard to find all places where "integer" might make a difference. I'd ask Uri why it's there. Even without looking at the code, "use integer" is likely to introduce a 2GB limit -- the documentation doesn't seem to mention such a thing. Anno
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.