![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Trim Two Characters On Lineby johngg (Canon) |
on Oct 22, 2020 at 23:14 UTC ( #11123062=note: print w/replies, xml ) | Need Help?? |
You can use chop to remove a character from the end of a string, it works on $_ by default. I assume that you don't want to get rid of the line terminator so I remove it first using chomp then it gets replaced by say when the line is printed.
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|