| Code-Dumper documentation | Contained in the Code-Dumper distribution. |
Code::Dumper - A debugging module to have your cake and eat it too
use Code::Dumper; # DUMP ( print "just another perl hacker"; # )
Surround code with the special Code::Dumper comments (see SYNOPSIS) and your code will be:
executed as normal
printed as well
Debugging can be fun. However after too many print statements and Data::Dumpers have been sprinked all around, lets face it... it can do your head in. Code::Dumper is a module that attempts to bring back debugging context and your sanity.
Please report them. Better yet, submit a patch :)
Alfie John, <alfiejohn@flamebait.org>
Copyright (C) 2005 by Alfie John
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
| Code-Dumper documentation | Contained in the Code-Dumper distribution. |
package Code::Dumper; our $VERSION = '0.01'; use strict; use warnings; use Filter::Simple; FILTER_ONLY 'executable' => sub { s{ \s* \# \s* DUMP \s* [(] \s* (.*?) \s* \# \s* [)] \s* } { print ' \n$1\n '; $1; }gisx; }; 1; __END__