in reply to Possibility to count the recursive depth

How (Not) To Ask A Question

I'd guess you could maybe do something with embedding something like (?{$depth++}) somewhere but lacking a concrete example to work from that's pure handwavium.

The cake is a lie.
The cake is a lie.
The cake is a lie.