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