in reply to More clear dumper debugging lines

Solution? Learn about autouse:
use autouse Data::Dumper => qw(Dumper); ... # warn Dumper $complex_structure;
Now you pay the Data::Dumper loading penalty only when you uncomment your debugging statement. Whee.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: More clear dumper debugging lines
by Aristotle (Chancellor) on Jul 16, 2006 at 10:51 UTC

    …replaced instead with an autouse penalty. :)

    When I’m annoyed at having to load Data::Dumper, it’s not because of the load time penalty, it’s because of code cleanliness in code that doesn’t actually need the module otherwise. So I’ve been putting my use statements next to the print for a long time, much like the OP suggests.

    Makeshifts last the longest.