in reply to (Ovid -Golf) Re(3): How do you chomp your chomps?in thread How do you chomp your chomps?
sub my_chomp { substr shift, 0, ((length) = length($/)) if $_[0] =~ /$\$/};
Untested, but I would like to point out that the regex is pretty.