Help for this page

Select Code to Download


  1. or download this
    sub print_debug {
        use Term::ANSIColor qw(:constants);
    ...
    
    use Term::ANSIColor qw(:constants);
    print_debug ("foo", BLUE ON_WHITE);
    
  2. or download this
    sub print_debug {
        my ($text, $color) = @_;
    ...
    }
    
    print_debug "bar", "yellow on_magenta";