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 ]}/
In reply to Re: qr expression defined as constant?
by ikegami
in thread qr expression defined as constant?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |