in reply to qr expression defined as constant?
Those square brackets are the array constructor operator. Nothing to do with regex patterns.
my @anon = REGEX; my $anon = \@anon; /&$anon/
should be
my @anon = REGEX; my $anon = \@anon; /@$anon/
so
/&{[ REGEX ]}/
should be
/@{[ REGEX ]}/
|
|---|