If you pass $str as an argument to the benchmarked subs, the difference will be markedly less pronounced. Run the bench with time limit instead of loop count, and you'll see the test takes a suspiciously long time.
The subs in question are too trivial to measure via Benchmark. Yet another example of benchmarking pitfalls...
In reply to Re^2: Delete a line
by Anonymous Monk
in thread Delete a line
by karthik92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |