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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to include a string immediately after a variable in a double-quoted string
by stevieb (Canon) on Nov 20, 2015 at 22:54 UTC | |
Re^2: How to include a string immediately after a variable in a double-quoted string
by msh210 (Monk) on Nov 22, 2015 at 04:57 UTC |
In Section
Seekers of Perl Wisdom