Solution #10 - While #2
sub delpoint2 ($) {
local $_ = shift;
while (s/\.(.*\.)/$1/) {}
return $_;
}
| TATMWTDI | There are too many ways to do it | #16 |
sub delpoint2 ($) {
local $_ = shift;
while (s/\.(.*\.)/$1/) {}
return $_;
}
| Copyright © 2005 Shlomi Fish |