Dear monks!

I have a nested hash data-structure with about 80000 entries, which I want to dump to a logfile for debugging reasons. I use the following line:

print( Data::Dumper->Dumpxs( [ \ %WPs ], [ qw{ *WPs } ] ));
The output is directed to the logfile by the Windows-7 redirection
D:\tools\perl\bin\perl -Id:/tools/perl/lib -w Tool5.pl report.xlsx > l +og.txt
Unfortunately, I get a pop-up-error-window stating that the perl-interpreter is no longer working and needs to be stopped. Looking at the logfile, this error occurs somewhere "in the middle" of the line above - the hash has not been fully dumped. I am using ActiveState Perl 5.8.2 under Windows 7.

Do you have any idea why this could happen and how to prevent it? Fortunately, it is only a minor annoyance, as the script finished processing, and the error occurs afterwards - nevertheless it would be fine if there would be an easy explanation (is there a limit of characters when redirecting script-output?) and a workaround.

Thanks in advance! Rata

In reply to Perl interpreter stops when writing logfile - why? by Ratazong

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.