Subject: | wish: a comment that only appears in verbose mode |
I would like support for a comment that only appears in verbose mode, unlike 'diag', which always appears.
I've been using this simple hack for months to do this (below). However, judging from the code for 'diag', a proper solution is somewhat more involved.
=head2 note()
note "My Comment Only for Verbose Mode"
Use this function to create a comment that shows up in verbose
test output, but not the bulk test runs.
=cut
sub note($) {
my $msg = shift;
print "# $msg\n";
}