Re: changing lowercase elements of an array

2010-09-14 Thread John W. Krahn
Noah wrote: Hi there, Hello, 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); my @sitenamekeys = map lc, sort keys %sites; print "site @sitenamekeys\n"; exit 0; John -- Any intelligent fool

Re: changing lowercase elements of an array

2010-09-14 Thread Shlomi Fish
Hi Noah, On Tuesday 14 September 2010 17:19:17 Noah wrote: > 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 change @sitenamekeys (whi