Bryan R Harris wrote: > I'm having trouble with this, and I'm sure someone out there has a > really clever solution-- > > I have a hash, %data, with, say, 32 elements. > > From that, I need an array going from 01 to 32, i.e. 01, 02, 03, 04, > etc. > The real question is what are you attempting to do? With the hash, you can have totals and any other info, pulse you have the key as part of what is going.
Wags ;) > But if my hash had 750 elements, I'd want it to go from 001 to 750. > > I thought this should be easy, but I'm really struggling with it-- > > This is the best I've come up with: > > @alleys = ('0' x (length(keys(%data)) - 1) . '1' .. keys(%data)); > > ... but it doesn't work. > > Any ideas? > > TIA. > > - Bryan ******************************************************* This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ******************************************************* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>