drawde83 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I've written a program to test out some java code. The output of this is stored in a variablae so that it can be input into some another java process. I have one partucular file that this program won't work on I'm wondering If I've tried to put too much data in the string variable. The output is 144k and apart from not outputing anything is not producing any errors

Replies are listed 'Best First'.
Re: maximum amount of data in a variable
by ikegami (Patriarch) on May 17, 2006 at 21:40 UTC
    I had strings and arrays containing 100s of MB of data. 144KB is invisibly small compared to Perl's limits, and inconsequentially small compared to limits of even a low end system. The problem is elsewhere.
Re: maximum amount of data in a variable
by HuckinFappy (Pilgrim) on May 17, 2006 at 22:37 UTC
    If you can post a snippet of code demonstrating your problem, you can get more help here finding your real problem. 144k in a variable is no problem for perl...the problem lies elsewhere.
Re: maximum amount of data in a variable
by TedPride (Priest) on May 18, 2006 at 03:11 UTC
    It's undoubtedly a code error. Just print out your data at various points along the way and find out where it disappears.
Re: maximum amount of data in a variable
by nimdokk (Vicar) on May 18, 2006 at 13:00 UTC
    If you have not already done so, you might want to include use strict; and use warnings; that might help.