[Chicago-talk] DEBUG function
gdf at speakeasy.net
Mon Mar 1 10:46:57 CST 2004
Another trick: put this DEBUG.pm (listed below) somewhere in your
@INC. Comment out any debugging-only lines by starting them with
"#DEBUG " (with trailing space), which will cause perl to compile them
away entirely. When you need the debugging lines, add a "use DEBUG;" to
your file (or -MDEBUG on the cmdline) to magically uncomment them.
#DEBUG print complex_debugging_output($_) for @huge_data_structure;
Uncomments lines beginning with "#DEBUG " when used.
More information about the Chicago-talk