lecb:
I'd suggest using a hash of hashes. The first hash key would be the name of the fruit, and the second would hold the + or -:
my $key = 'cherry'; print "$key is positive!\n" if exists $strands{$key}{'+'}; print "$key is negative!\n" if exists $strands{$key}{'-'};
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Unique key identifer?
by roboticus
in thread Unique key identifer?
by lecb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |