in reply to Sort by Email Address
Untested, but it ran fine in my head. {grin}my @sorted_email = map /([^\0]*)\z/, sort map { my @domain = split /\./, (/.*\@(.*)/s)[0]; join "\0", reverse(@domain), $_; } @incoming_email;
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sort by Email Address
by Aristotle (Chancellor) on Aug 20, 2002 at 11:32 UTC | |
|
Re: Re: Sort by Email Address
by BigLug (Chaplain) on Aug 20, 2002 at 05:59 UTC |