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
In reply to Sort names by motzi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |