Hi,
I have an array that hold first and last names of people,
the first and last name are separated with a pipe (|)
it looks like this:
@names = ("David|Gets","Richard|Storm");
I want to sort this array, sometimes by the first name
and sometimes by the last name.
(like the unix sort command: sort -k)
Can this be doen in perl?
thanks.