Without having looked at the code in TLUtils.pm, a few keywords in your discussion remind me of a similar problem in "debbuild", which in the end I fixed with a double-ended pipe: https://github.com/ascherer/debbuild/blob/master/debbuild#L1689 Best, Andreas