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.
|
---|
In Section
Seekers of Perl Wisdom