I have this code
Suppose I only wanted to sort $alpha 1-4 (every line but the first one), how would I go about this? I'm looking for in general type solution here. Also the number of 'names' in the array will be dynamic. TIA
Joe
A clever person solves a problem.
A wise person avoids it.
-- Einstein
Code:
3 @alpha=("Names","Steve","Linus","Larry","Bill");
4 @alpha=sort(@alpha);
5 foreach $name (@alpha){print $name."\n";}
6 #print @alpha;
Joe
A clever person solves a problem.
A wise person avoids it.
-- Einstein