Also, you can simplify the map as follows:
my %hash = map { (split /:/)[0,2] } <FILE>;
Paul
In reply to Re: Problem generating a hashtable
by rev_1318
in thread Problem generating a hashtable
by Tomtom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |