in reply to $_ vs. argument passing

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

Replies are listed 'Best First'.
Re^2: $_ vs. argument passing
by Dylan (Monk) on Dec 22, 2004 at 19:58 UTC
    yes, that is what feels right to me, as well. Perhaps because I've been coding in scheme and ocaml lately. :)