pmy @fields = qw(A B C D E F); my %indices; @indices{@fields} = 0 .. $#fields; . . . my @chosen = qw(A B D F); . . . @rec{@chosen} = (split/\t/)(@indices{@chosen});
In reply to Re: Ignoring values in a hash slice assignment
by petral
in thread Ignoring values in a hash slice assignment
by impossiblerobot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |