From: James marks <[EMAIL PROTECTED]>
> >     The problem is most likely in your algorithm. Show us the code.
> 
> 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:
> 
> #!/usr/bin/perl
> ...

I do not see anything wrong with your code but 21.5MB is definitely 
not too big.

Try to add some more logging into the script (like printf( "%02d %d", 
$line_count, $total_line_count) to a separate log file) to see 
whether it really stops reading or just stops processing the lines.
You may also want to add an else{} branch to your if(){}elseif(){}... 
and die printing $line_count if the script ever enters that branch.

Jenda

===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
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