use strict; my $regex = qr/(?{{$undeclared}})/;