in reply to printing variable and evaluation
Did you try Data::Dx (recently added to CPAN)?
It's a "named dumping" wrapper around Data::Dump, but it uses keywords, rather than source filters, so it's inherently much safer.
In Section
Seekers of Perl Wisdom