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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|