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

Hello everybody,

Today I have an issue with Perl and XAMPP. I checked the Perl version included with XAMPP:

D:\xampp\perl\bin>perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x +86-multi-thread Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

I have an old little Perl app coded really very low. But it worked as far, I meant. Today I stumbled upon an effect. The output - if it becomes over 256KB - stops at this border and hangs. It does not load further. First I tought of it would be of an own programmed limmitation. But in the content of the output, if I add some output it stops more early in content but also at 256KB.

Are there known limitations in the size of the output of XAMPP or of the Perl version included in XAMPP?

Thanks in advance, best regards ..

Replies are listed 'Best First'.
Re: CGI Perl output cut with xampp
by NetWallah (Canon) on Jul 05, 2016 at 17:45 UTC
    Look for the apache log at
    \xampp\apache\logs\error.log
    or thereabouts (depening on how you installed it).

    That may hold clues to potential truncation, or apache buffers being exceeded, or perhaps data delivery timeouts.

            There is no time like the present for postponing what you ought to be doing.

      the most errors in log are "use of uninitialized value". Then there is a "$* is no longer supported" (use of an old version of cgi-lib). An "\\1 better written as $1". And an "odd number of elements in hash assignment".

      thanks

        The "odd number of elements in hash assignment" indicates a programming error - potentially caused by mishandling of (unexpected formatting) incoming data.

        There is a possibility that the incorrectly populated hash may result in incomplete data displayed.

        You will need to examine the code and related data - I suggest you run the code under the command line debugger, and isolate the issue.

                There is no time like the present for postponing what you ought to be doing.

Re: CGI Perl output cut with xampp
by Corion (Patriarch) on Jul 05, 2016 at 13:09 UTC

    Maybe your client is not reading the data fast enough?

    To give more detailed help, we will need a short, self-contained program that reproduces the problem.

      A little correction: I've corrected some debug output. Now the border is at ~320KB

      The project is under github/toohoo/thofaq

      The problem cannot be tested with this because of the little database. In an existing use case I have more data, about 76 FAQ. The output stops at 50 round about.

      What is disturbing: If I switch to edit, all FAQ are put out. And that nonetheless the output is greater.

      have no idea. :-/

        If the problem seems to correspond to the output size, maybe just creating a program that outputs that much data already reproduces the problem?

        I'm not sure what your expectation is how we could help you here better. We are not clairvoyant and you have not shown us any approach to reproducing the problem nor a succinct description of where/how the problem happens at all.

        If you are talking about a webpage, maybe telling us which of the many, many Perl scripts in the (not linked) Github repository is the one that is problematic allows somebody here to spot the problem a bit better. But I recommend to post the relevant code after shortening it to say 20-30 lines instead of linking to some github repository. Please also make sure that the problem still persists after shortening the code.

Re: CGI Perl output cut with xampp
by poj (Abbot) on Jul 05, 2016 at 15:27 UTC

    What is the XAMPP version ?

    poj

      the readme says: ApacheFriends XAMPP Version 5.6.15

      thanks so far