> hello,
Hi,

>  I have a hash. To use this hash with a module I need it in this form...
> 
> @data = (
>     ["12am","1am","2am","3am","4am","5am","6am", "7am", "8am"],  ### key
>     [   251,   102,  55,   36,   113,  200,    32,    99,   4],  ###val
> );
> 
maybe this is what you want:

my @data;
@{ $data[0]} = sort keys %hash;
@{ $data[1] } = @hash{ @{ $data[0] } }; 

/Stefan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to