There is a gap between the output text and the added variable content.
Why is this the case?
How can I avoid this gap?
I tried this…
Version 1:
print "Your input was: ", "$input_line";
Version 2:
print "Your input was: ","$input_line";
If input-text was Hello the terminal-window writes:
Your input was: Hello
^
I try to give out a text and the text should be followed by an variable-content (here $input_line).
The problem is, that there is a gap (see this sign “^”) between the text and the variable-content.
user25867492 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.