Software >> Development >> Languages >> Perl >> How to remove trailing blanks from a string

$string =~ s/ *$//;

Deals @yubeshop.com