>> 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.
I'm building a script that will split a file into a bunch of little pieces,
based on very specific and custom criteria. The hash holds the data, e.g.
$data{"32.52,53.21"} would hold all the data pertaining to that key ("10 20
30\n40 50 60\n"), and I want to write these little files out. I want to
number the output files based on the number of hash elements, but I want
them to be zero-padded so they line up in file lists. The rest of it works,
I'm just having trouble coming up with the zero-padded numbers!
- B
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>