in reply to Dynamic Variables?
my %Categories = ( cat1 => [ 'a', 'b', 'c', ], # etc... ); foreach my $sub_category (sort keys %Categories) { print $sub_category, $/; foreach my $value (@{$Categories{$sub_category}}) { print "\t$value\n"; } } __END__
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Dynamic Variables?
by Anonymous Monk on Feb 28, 2002 at 22:46 UTC |