August 1999 | Return to the Perl Hardware Store | Slide #3 |
You have two parallel arrays
Sort one into the order specified by the other.
Example:
@first @last
Albert Einstein Mark Dominus Morton Zeemeister Babe Ruth Nat Torkington Larry Wall
Sort @first into order Mark, Albert, Babe, Nat, Larry, Morton.
Next | Copyright © 1999 M-J. Dominus |