in reply to Alternative to sort Hash
my @voices = ...(whatever you do to get the voices array) my $voicezero = $voices[0]; # if name of voice needed later $voices[0] = 'least-liked'; my $voice = first { m/$language/ } @voices || 0; $voices[0] = $voicezero; # if name of voice needed later
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Alternative to sort Hash
by AnomalousMonk (Archbishop) on Dec 06, 2019 at 21:23 UTC |