http://qs321.pair.com?node_id=617441


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.