use Foo; my $r = Foo->new( '[aeiou]+\\d+' ); my $super_re = qr/[A-Z]+$r/; print <