in reply to Formatting Strings Without Interpolating Whitespace
I don't only get character breaks on \n, I get character breaks on \n and every time I add an actual carriage return to the string with the "Enter" buttonWell, yes, of course. (Although, since you use single quotes in your code snippets, \n aren't interpolated -- but I'll consider that a copy-and-paste error). What do you expect Perl to do? Ignore your \ns? Ignore your newlines? Why should it? If you have newlines in your strings (be it because of \n, or a "real" newline) that you don't want, don't put them there!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting Strings Without Interpolating Whitespace
by BJ_Covert_Action (Beadle) on Jan 19, 2012 at 22:22 UTC | |
by JavaFan (Canon) on Jan 19, 2012 at 22:27 UTC | |
by tye (Sage) on Jan 19, 2012 at 23:14 UTC |