James Marks wrote:
The problem is most likely in your algorithm. Show us the code.

(Oops. Replied only to Charles by accident. Reposting to the list:)
Sorry. I was posting a part of the real code only to avoid posting an overly long string of code. The problem, it seemed to me, was more likely some other limitation than Perl since the code ran fine on files up to a certain size. However, I'll post the whole code if you'd like:

There is nothing in your code that I can see that would not work with a large file (if you consider 21.5 MB large.) :-) Perhaps it is a limitation of the operating system?

Dang. Replied only to John. Reposting to the list. (I'll learn...)

I'm running it on a 1 GHz Mac OS X (FreeBSD *NIX based) with nearly 800 megs of RAM. Shouldn't that be able to handle it? (Perl 5.8.x, I believe).

Sorta surprised me that it seems to choke on a 21.5 meg file, hence my original question, "Why?"

Perl doesn't (normally) have any built-in size restrictions. From the command line run perl with the -V switch and look for the string 'uselargefiles=define'. If instead it says 'uselargefiles=undef' then that could be your problem.


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to