in reply to How do I obtain a list of values for all the properties of a Word document using Win32::OLE?
Second, there seems to be a property whose value itself recurses, because I keep getting the same properties over and over after a short period of time
When you brought up your problem in the CB, I postulated that the reason you were running our of memory is that properties formed an infinite loop. You've just confirmed this.
The problem isn't in Data::Dumper. It detects loops in data.
$ perl -MData::Dumper -e'my $x = {}; $x->{x} = \$x; print Dumper $x' $VAR1 = { 'x' => \$VAR1 };
The problem is that Win32::OLE doesn't do such checks. When it receives an object, it create a new Perl object to serve as a bridge. Data::Dumper correctly thinks this is a different object, so it proceeds to dig deeper.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I obtain a list of values for all the properties of a Word document using Win32::OLE?
by romandas (Pilgrim) on Jun 11, 2009 at 18:38 UTC | |
by ikegami (Patriarch) on Jun 11, 2009 at 19:14 UTC | |
by romandas (Pilgrim) on Jun 11, 2009 at 19:28 UTC | |
by ikegami (Patriarch) on Jun 11, 2009 at 20:25 UTC |