in reply to
perl's grep function with '^' and '$'
The problem is in the quoting.
qq[...]
quotes a string, so your array has just one element - that happens to start with an A.
use
qw(Anthony Mark Alex A)
and all is fine.
Perl 6 in German
Comment on
Re: perl's grep function with '^' and '$'
Select
or
Download
Code
In Section
Seekers of Perl Wisdom