TATMWTDIThere are too many ways to do it#16

Solution #10 - While #2

sub delpoint2 ($) {
    local $_ = shift;

    while (s/\.(.*\.)/$1/) {}

    return $_;
}
Copyright © 2005 Shlomi Fish