Strings In Depth7 / 18
Up next

printf directly

use strict;
use warnings;

# printf formats and prints, but adds no newline itself
printf("%d items at \$%.2f\n", 3, 1.5);
What you're solving

print a formatted line