$rt = $inp; chomp $rt; # insert at line 23 $rt =~ s/Remote Temp://;
chomp() would probably be more appropriate, since it removes (from the docs) "any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the 'English' module)", and $/ can be set to the appropriate value if there is a difference in line endings/separators (such as "\n" vs. "\r" vs "\r\n" vs. ...).
Hope that helps.
In reply to Re^2: Strings mangled on printing
by atcroft
in thread Strings mangled on printing
by gordu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |