How about this?
my @sitenamekeys = map {lc($_)} sort keys %sites;
print "site @sitenamekeys\n";
exit 0
Jen
-----Original Message-----
From: Noah [mailto:[email protected]]
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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/