Ratazong has asked for the wisdom of the Perl Monks concerning the following question:
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:
The output is directed to the logfile by the Windows-7 redirectionprint( Data::Dumper->Dumpxs( [ \ %WPs ], [ qw{ *WPs } ] ));
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.D:\tools\perl\bin\perl -Id:/tools/perl/lib -w Tool5.pl report.xlsx > l +og.txt
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl interpreter stops when writing logfile - why?
by Corion (Patriarch) on Dec 09, 2014 at 13:44 UTC | |
|
Re: Perl interpreter stops when writing logfile - why?
by LanX (Saint) on Dec 09, 2014 at 13:37 UTC | |
by Ratazong (Monsignor) on Dec 09, 2014 at 14:37 UTC | |
by LanX (Saint) on Dec 09, 2014 at 15:32 UTC | |
|
Re: Perl interpreter stops when writing logfile - why?
by Anonymous Monk on Dec 09, 2014 at 13:42 UTC | |
by Anonymous Monk on Dec 09, 2014 at 13:52 UTC |