4 our @ISA = qw( Exporter );
5 our @EXPORT = qw( fatal_error error hint debug msg note
6 print_errors print_hints print_debug print_msgs
11 our (@fatal_errors, @errors, @debug, @msgs, @hints, @notes);
14 @fatal_errors = @errors = @debug = @msgs = @hints = @notes = ();
18 push @fatal_errors, $_[0];
28 push(@debug, $_[0]) if $debug > $lvl;
37 return unless @fatal_errors || @errors;
38 print '<div style="background-color:#F99;font-weight:bold;padding:0.5em;margin:0;">';
39 foreach ((@fatal_errors, @errors)) {
40 print "<p>ERROR: $_</p>";
45 return unless $debug && @debug;
46 print '<div style="font-size:80%;border:solid thin grey">';
47 print '<h2>Debugging:</h2><pre>';
57 print "<p style=\"background-color:#FF9;padding:0.5em;margin:0\">$_</p>";
68 my ( $title, $note ) = @$_;
70 print '<div style="border: solid thin black; background-color: #ccf">';
72 print "<h2 class=\"pred\">$title</h2>";
76 print "<p>$note</p></div>";