Vladimir Lemberg wrote:
> Creating list of lists.

perldoc -q "What is the difference between a list and an array"

> Hi All,

Hello,

> Could you help me to come up with idea how to generate list of lists on fly 
> as follows:
> 
> @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.

my @AoA = map [ $_, function() ], keys %states;



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

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


Reply via email to