in reply to input & output for TB conv

So, what's your question? Where is the Perl part?