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 there, what is the easiest way to change all the keys that are now placed as elements in an array to lowercase? my @sitenamekeys = sort keys (%sites); print "site @sitenamekeys\n"; exit 0; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/