use Rex; print STDERR "This is STDERR message\n"; print STDOUT "This is STDOUT message\n"; task 'test', sub { };