printf takes a FORMAT: in this case, that's "%d: %s, %s\n". Those FORMATs are documented under the related function sprintf.
The 'for @sorted' part is a statement modifier: documented under perlsyn: Statement Modifiers.
Hopefully, the remaining parts are clear. If not, please specify what part(s) you're having difficulty with.
— Ken
In reply to Re^3: sorting hash alphabetically with numbering
by kcott
in thread sorting hash alphabetically with numbering
by reebee3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |