in reply to Re^5: Counting matches
in thread Counting matches

What does this line do/mean?
printf "%-15s count %d\n",$_,$count{$_};

Replies are listed 'Best First'.
Re^7: Counting matches
by poj (Abbot) on May 29, 2017 at 18:49 UTC

    it formats the print output, see printf and sprintf

     %-15s  a string 15 characters minimum width left justified
     %d     signed integer