Off-topic from the original question, but whenever you do print sprintf, you should think about just using printf directly. I think this is clearer:
while (<$hndl>) { printf "%7d %s\n", $., $_; }
In reply to Re^2: speeding up script that uses filehandles
by revdiablo
in thread speeding up script that uses filehandles
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |