Use a hash instead.
my %data = map { $_ => do { ... some function of $_ ... } } ('ab', 'cd', ..., 'yz');
In reply to Re: Computed "my" declarations?
by Tanktalus
in thread Computed "my" declarations?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |