I want to print the even numbers in a row but I can't.
use Terminal::ANSIColor;
# Wanna print even numbers in red
for <1 2 3 4>
{ $_ %2 == 0 ?? say color('red'),$_,color('reset') !! say $_ }
printf doesn't seem to work with the Terminal::ANSIColor directives and put doesn't work either.
Is there any switch to say which makes it print without newline? How to print those Terminal::ANSIColor formatted sections in a row?