Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

File::ReadBackwards, use integer
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

Report this thread to moderator Post Follow-up to this message
Old Post
xhoster@gmail.com
04-23-05 08:57 PM


Re: File::ReadBackwards, use integer
<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

Report this thread to moderator Post Follow-up to this message
Old Post
Anno Siegel
04-24-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:22 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.