in reply to perlform and write

You can use Perl6::Form, or you could capture a file handle to a scalar (see open or IO::Scalar on how to do it), write your form to that scalar and modifiy it before printing.