Help for this page
my $junk = 'The quick brown fox Jumped over the lazy dog';
'regex1' => '$junk =~ tr/\s//;',
'regex2' => '$junk =~ s/\s//g;',
Benchmark: timing 5000000 iterations of regex1, regex2, split...
regex1: 3 wallclock secs ( 4.38 usr + 0.00 sys = 4.38 CPU) @ 11
regex2: 3 wallclock secs ( 3.50 usr + 0.00 sys = 3.50 CPU) @ 14
split: 15 wallclock secs (15.07 usr + 0.00 sys = 15.07 CPU) @ 33
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (409 votes). Check out past polls.