in reply to Dynamic Variables?

Use multi-level data structures instead. Do something like:
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
    dragonchild, thanks! That has the effect I was thinking of.