in reply to Re: sorting with Schwartzian Transform
in thread sorting with Schwartzian Transform

Any particular reason why telephone numbers need to be compared as numbers and not as strings? If you need to make more transformations, just keep chewing on $key in the map statement.
map { my $key = (split /,/, $_)[$idx]; chomp $key; $key =~ s/[-+]//g; # and so on... [ $_, $key ] } @array;

Replies are listed 'Best First'.
Re: Re: Re: sorting with Schwartzian Transform
by LiTinOveWeedle (Scribe) on May 08, 2001 at 03:41 UTC
    Yeah no good example, prices is better.
    Many THX fot your answer....

    Li Tin O've Weedle
    mad Tsort's philosopher