in reply to how to use STDOUT in Devel::Cycle
I know nothing about the modules you are trying to use, but perhaps these general debugging techniques will be of use to you (all code is untested).
Use the strictures to help catch common mistakes:
use warnings; use strict;
Print out all intermediate values:
use Data::Dumper; my ($contact) = Denali::Contact->find(contact_id => 1); print Dumper($contact);
A quick look at the Devel::Cycle documentation states that:
The find_cycle() function will traverse the object reference and print a report to STDOUT identifying any memory cycles it finds.So, you should try just:
instead of:find_cycle($contact);
print STDOUT find_cycle($contact);
|
|---|