motzi has asked for the wisdom of the Perl Monks concerning the following question:
As you can see it's unreal ircd's permissions, so what i need to put in subroutine 'sorting' to get output like:@userz_tmp = qw/goodman hsytva %pisyun [error] Gerich Fair CYCLER ~shu +rmann &BECHED sp w %sanekdark FIXER lizergin @XUEC/; foreach(sort sorting @userz_tmp) { print "$_\n"; } sub sorting { lc($a) cmp lc $b; }
~nick # 1: users with ~ ~nick2 &nick # 2: users with & @nick # 3: users with @ @nick2 %nick # 4: users with % +nick # 5: users with + nick8 # 6: users without ~&@%+ symbols in alphabetical order nick9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort names
by ikegami (Patriarch) on May 25, 2010 at 22:14 UTC | |
by motzi (Sexton) on May 25, 2010 at 22:45 UTC | |
by choroba (Cardinal) on May 25, 2010 at 23:25 UTC | |
by ikegami (Patriarch) on May 25, 2010 at 22:48 UTC |