Help for this page
} while ($index != -1);
$string =~ s/[^$char]//g;
Eval: 56 wallclock secs (45.19 usr + 0.00 sys = 45.19 CPU) @
While Loop: 5 wallclock secs ( 4.69 usr + 0.00 sys = 4.69 CPU) @
Substitution: 1 wallclock secs ( 1.41 usr + 0.00 sys = 1.41 CPU) @
my ($string, $char) = @_;
return ($string =~ s/$char//g);
www.com | www.net | www.org
There is too much technical debt in my codebase
The stability of the system Perl suits me better
I have to support users of some ancient version
I'm stuck with ActiveState/TinyPerl/microperl/Strawberry ...
Letting the early adopters trip over the bugs is fine
Some other reason
Results (40 votes). Check out past polls.