http://www.perlmonks.org?node_id=869326


in reply to Re^2: Match operator fails for elements 100 and higher
in thread Match operator fails for elements 100 and higher

Simpler workaround (or maybe it's the right thing to do in the first place) is this:

m/${mystrings[100]}/;

Replies are listed 'Best First'.
Re^4: Match operator fails for elements 100 and higher
by Utilitarian (Vicar) on Nov 03, 2010 at 21:47 UTC
    Yup, there is ambiguity as to whether the [999] is a character class or array index.

    Odd that the contents should determine how it's parsed though.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."