> 
>
>@LoL = (           ["state", "value", "value"],           ["state", "value", 
>"value"],           ["state", "value", "value"],    ); 
>
>State should be taken from hash %states where the state is a key.
>
>Value should be taken from function.
>

Hello,

It's just my guess,I think the state has some relation to the "value",is it?
It may write,

my %hash = (...);
my @lol;
for (keys %hash) {
    push @lol, [ $_, func01($_), func02($_) ];
}

Here func01 and func02 are the subroutines which accept the hash's key as their 
only argument and return a value for your use.

--
http://home.arcor.de/jeffpang/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to