if($^O =~ /MSWin32/){ use Win32::Console::ANSI; use Term::ANSIColor qw(:constants); } else { use Term::ANSIColor qw(:constants); }