One can also:
use IO::Handle;
STDOUT->autoflush(1);
STDERR->autoflush(1); use IO::Handle;
STDOUT->autoflush(1);
STDERR->autoflush(1);"There’s more than one way to do it, but sometimes consistency is not a bad thing either."
(for those unfamiliar: https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to...)