There's a piece of code out there called _bm_build, and it failed on me. I extracted the relevant part to create this test.
#! /usr/bin/perl -w
my @mystrings = ("string") x 200;
m/$mystrings/; # This compiles fine.
"$mystrings"; # This compiles fine.
m/$mystrings/; # This does not.
The error I get is
Global symbol "$mystrings" requires explicit package
name at ./maketest.pl line 9.
Execution of ./maketest.pl aborted due to compilation
The Perl package on this RHEL5 machine is perl-5.8.8-32.el5_5.1.
Why does only the last line fail, and any ideas how to work around this?
Update: Added -w for warnings and added forgotten parentheses to repeat string.