<br/>
On Mon, May 22, 2006 16:02, Jay Hannah wrote:<br/>
> before:<br/>
> for ($j = 0; $j < @row; $j++) {<br/>
> $row[$j] =~ s/[^ -~]//g;<br/>
> $row[$j] =~ s/\|/:/g;<br/>
> }<br/>
> <br/>
> after:<br/>
> for (@row) {<br/>
> s/[^ -~]//g;<br/>
> s/\|/:/g;<br/>
> }<br/>
<br/>
Ok, Jay -- which one is faster? I am pretty sure it's the second
one, but I'm interested in how much.<br/>
<br/>
(Thought I'd ask since you're always benchmarking ...)<br/>
<br/>
Dan<br/>
<br/>
- - - -<br/>
"Wait for that wisest of all counselors, time." -- Pericles<br/>
"I do not fear computers, I fear the lack of them." -- Isaac
Asimov<br/>
"Soon we will be able to harness the rotational energy from Orwell's
grave to solve all world energy problems." -- /. user GigsVT
(208848)<br/>
GPG fingerprint:6FFD DB94 7B96 0FD8 EADF 2EE0 B2B0 CC47 4FDE 9B68