We don't bite newbies here... much | |
PerlMonks |
Re^4: Strings mangled on printingby sn1987a (Deacon) |
on Jun 04, 2015 at 18:56 UTC ( [id://1129092]=note: print w/replies, xml ) | Need Help?? |
Actually, $inp =~ s/\s$//; will remove only a single whitespace character at the end of the line. Use $inp =~ s/\s+$//; to remove all of them.
In Section
Seekers of Perl Wisdom
|
|