$ who|perl -MO=Deparse -ne'/ /,$;{$`}++}{print$_,$/^="*"for%' LINE: while (defined($_ = )) { / /, ++$;{$`}; } { foreach $_ (%;) { print $_, $/ ^= '*'; } }