http://www.perlmonks.org?node_id=1148266


in reply to How to include a string immediately after a variable in a double-quoted string

You can also use printf/sprintf to keep your data separated from the "presentation":

printf "The maximum number of %sevents on %s occurred %d times; it was + %d.\n", $type, $date, $maxtimes, $max, ;

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)