If I have a scalar variable that itslef is a list of names and numbers, for
example
> $names = 'john 35, jack 18, albert 24, timmy 42'; is it possible, and if
so how can it be done to separate the individual names and ages from the
list in their scalar form in order to create new lists sorted by names and
ages. thanks for any suggestions.

my @names = sort split /, ?/, $names;

this worked very well for the names only but did not sort properly for ages
as well

G'Night and good luck.

James


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to