#!perl -pl $_=3x/.([]})>])/^$+^$&|0?$`.$'||yes:"failed at: $+".($+?$':EOL)until/e/