in reply to Brute force perl
In Chapter 6 of Higher-Order Perl, Dominus builds all strings that match a given regular expression. One could generalize/modify this to generate valid perl code.
Good Day, Dean