I know I should ask to the CPAN mailing list, but maybe some of you have an Idea
What name should I use for a module helping in the Debug Process,
the uncommon aspect is that all the provided functions are called through comments !
my $a; #!watch($a)!
will trigger a monitoring on
$a telling me each time $a is accessed
Most of you have already recognized the monitor's idea
described in 'Advanced programming in Perl' from Sriram Srinivasan.
I also have an assert() function (I know there is a Carp::Assert) called the same way through comments.
A wait(<var>,<cond>) which will wait that <var> match the <cond> to carp/croak a message.
and of course a print() function.
As nothing is new you may wonder why I code already existing things.
Well, I thought that the non-intrusive module idea could be interesting
As the functions are called through comments,
all you have to do to trigger on/off the debugging is to comment the 'use <yet-undefined-module-name>;' line...
There will be no remaining debugging code, not even a $DEBUG var...
Furthermore the filter approach helps me (I hope) to hide some unnecessary technical difficulties
(about the watch() feature for example...)
But may be I'm just plain wrong about the whole thing, so any advice (about what to add, the name...
and/or any opinion (about its usefulness, its interface) will be really welcome...