I have a line like this...
print DESTINATION "old: $_new: $line\n";
Where $_ and $line are strings with a \n on the end that I want to write to the file.
Obviously $_new won't work, but neither will $_\new because it treats \n as a newline. Does anybody know of a better way to do it, "old: $_"."new: $line\n" seems bodgy.
Ta.
In reply to Interpolation question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |