| 1 | package Data::Printer::Theme::Classic; | ||
| 2 | # classic Data::Printer colors, for nostalgic users :D | ||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | sub colors { |
|
Subroutine
colors: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | return { | ||
| 8 | 1 | array => 'bright_white', # array index numbers | |
| 9 | number => 'bright_blue', # numbers | ||
| 10 | string => 'bright_yellow', # strings | ||
| 11 | class => 'bright_green', # class names | ||
| 12 | method => 'bright_green', # method names | ||
| 13 | undef => 'bright_red', # the 'undef' value | ||
| 14 | hash => 'magenta', # hash keys | ||
| 15 | regex => 'yellow', # regular expressions | ||
| 16 | code => 'green', # code references | ||
| 17 | glob => 'bright_cyan', # globs (usually file handles) | ||
| 18 | vstring => 'bright_blue', # version strings (v5.16.0, etc) | ||
| 19 | lvalue => '', # lvalue label | ||
| 20 | format => '', # format type | ||
| 21 | true => 'bright_cyan', # boolean type (true) | ||
| 22 | false => 'bright_cyan', # boolean type (false) | ||
| 23 | repeated => 'white on_red', # references to seen values | ||
| 24 | caller_info => 'bright_cyan', # details on what's being printed | ||
| 25 | weak => 'cyan', # weak references | ||
| 26 | tainted => 'red', # tainted content | ||
| 27 | unicode => '', # utf8 flag | ||
| 28 | escaped => 'bright_red', # escaped characters (\t, \n, etc) | ||
| 29 | brackets => '', # (), {}, [] | ||
| 30 | separator => '', # the "," between hash pairs, array elements, etc | ||
| 31 | quotes => '', | ||
| 32 | unknown => 'bright_yellow on_blue', # any (potential) data type unknown to Data::Printer | ||
| 33 | }; | ||
| 34 | } | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | __END__ | ||