in reply to Re: Word replace - notetab light vs perlin thread Word replace - notetab light vs perl
Did you mean the following?
$start = new Benchmark;
open(FH, "wrongs") or die $!;
open(FH2, ">wrongs2") or die $!;
$lines = <FH>;
$counted2 = $lines =~ s/wrongs/wrongs4/g;
print FH2 "$lines";
$/ = "\n";
$end = new Benchmark;
# calculate difference
$diff = timediff($end, $start);
print "replaced: $counted2 The operation took: " , timestr($diff, 'all
A drawback of such optimization - no-one now can improve that code, because it is highly complicated.
Well, this is not the only place on where perl has good speed abilities.
Courage, the Cowardly Dog
None - I don't code
0 - Ticker-tape is a purer representation of a Turing Machine
1 - A laptop screen or single monitor desktop workstation
1 - And it's cracked. And I like practicing my trade while lying on a bed of nails
2 - The standard dev kit suits me fine
3 - Fewer than three monitors wouldn't present enough insight into what I'm working on
4 - Everyone else has two or three. I'm not like everyone else
5 - This configuration reminds me of the 1987 5-cylinder VW Passat my parents let me drive in high school
6 - I saw such a thing on the Internet, and had to have it
6 - Because I haven't figured out how to add more
7 - I need all the luck I can get, for this code to work
8 - Because my power strip had eight outlets available
9 - A 3x3 array was the the most I could fit into my Faraday shielded SHTF headquarters
More than 9 - Most of them are just displaying graphs / mock code to make the boss think I'm doing something critical
Results (572 votes). Check out past polls.