That approach looks sound to me.
In reply to Re^11: Need help debugging Wx on Strawberry Perl 5.26.1 by swl in thread Need help debugging Wx on Strawberry Perl 5.26.1 by thechartist