I'm guessing that the explicit assignment to $_ is what's slowing it down. But I think you shouldn't worry so much about speed here considering that the disk read times are going to dwarf everything else. Instead, do whatever you think would feel right for the user of the module (I would pass the filename myself).
-b
In reply to Re: $_ vs. argument passing
by bgreenlee
in thread $_ vs. argument passing
by Dylan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |