use qw(Anthony Mark Alex A) and all is fine.
In reply to Re: perl's grep function with '^' and '$' by moritz in thread perl's grep function with '^' and '$' by jesuashok