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.
| [reply] |
See Re^3: formats output \r\n question
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
| [reply] |
Thanks - the open sub method works like a charm :)
| [reply] |
| [reply] |
Indeed :) some pointers for anyone finding this with search...
while( <STDIN> ) blocks, (while can't assume the format is done printing, even if we know the exact # of lines being written) ... solved by exiting the while on N written lines since I know N.
this is being run from a daemon... which is a child process all too itself. the daemon runs this capture on X formats every K seconds... each pipe is a new child process... defuncts like WOAH! :) remember to reap children Re: Unix Review column
| [reply] |