http://qs321.pair.com?node_id=21024


in reply to Re: Does it Iactually/I run faster?
in thread Does it Iactually/I run faster?

This can't be true, because:
d:\>perl -MO=Deparse -e "do {s/\s+/\t/; s/elementary/my dear Watson/g; +} for @array;" foreach $_ (@array) { s/\s+/\t/; s/elementary/my dear Watson/g;; } -e syntax OK

You machine probably was overloaded with some extra tasks second time. And I beleive multiline version compiled into the same code internally.