RE: how to use grep to match elements of an array

2010-09-16 Thread Jones, Jennifer
I have a question to John's response. The code works if the condition is met but responds with "Can't "next" outside a loop block at" when it does not. Can someone please explain why? Thanks, Jen Noah wrote: > Hi there, Hello, > I am trying to figure out how to use grep in a particular si

FW: changing lowercase elements of an array

2010-09-16 Thread Jones, Jennifer
How about this? my @sitenamekeys = map {lc($_)} sort keys %sites; print "site @sitenamekeys\n"; exit 0 Jen -Original Message- From: Noah [mailto:noah-l...@enabled.com] Sent: Tuesday, September 14, 2010 11:19 AM To: Perl Beginners Subject: changing lowercase elements of an array Hi ther