Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: perl's grep function with '^' and '$'by moritz (Cardinal) |
on May 25, 2007 at 09:16 UTC ( [id://617441]=note: print w/replies, xml ) | Need Help?? |
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
|
|